FSN#33928 _FACILITOR mag ook over tabellen

svn path=/Website/trunk/; revision=26514
This commit is contained in:
Peter Feij
2015-09-29 14:41:04 +00:00
parent 0e021bc812
commit c417ef5e29

View File

@@ -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)