diff --git a/APPL/API2/model_reportcolumns.inc b/APPL/API2/model_reportcolumns.inc index 8672666597..3c8cc64002 100644 --- a/APPL/API2/model_reportcolumns.inc +++ b/APPL/API2/model_reportcolumns.inc @@ -111,7 +111,8 @@ function model_reportcolumns(usrrap_key, params) var sql = "SELECT object_name, object_type, last_ddl_time" + " FROM user_objects" - + " WHERE object_type = 'VIEW'" + + " WHERE " + + (user.oslogin() == "_FACILITOR" ? "object_type IN ('VIEW', 'TABLE')" : " object_type = 'VIEW'") + " AND object_name = UPPER(" + safe.quoted_sql(view_name_short) + ")"; var oRs = Oracle.Execute(sql); if (oRs.Eof)