FSN#35733 betere _FACILITOR autorisering
svn path=/Website/trunk/; revision=28421
This commit is contained in:
@@ -25,7 +25,7 @@ function model_reportcolumns(usrrap_key, params)
|
||||
this.record_name = "column";
|
||||
this.records_title = L("lcl_rap_columns");
|
||||
this.record_title = L("lcl_rap_column");
|
||||
this.autfunction = "WEB_PRSSYS",
|
||||
this.autfunction = "WEB_UDRMAN",
|
||||
this.edit = { modal: true };
|
||||
|
||||
this.fields =
|
||||
@@ -117,10 +117,11 @@ function model_reportcolumns(usrrap_key, params)
|
||||
if (i != -1)
|
||||
view_name_short = view_name_short.substring(i+1);
|
||||
|
||||
var hasFACFAC = user.checkAutorisation("WEB_FACFAC", true); // Die mag ook tabellen doen
|
||||
var sql = "SELECT object_name, object_type, last_ddl_time, status"
|
||||
+ " FROM user_objects"
|
||||
+ " WHERE "
|
||||
+ (user.oslogin() == "_FACILITOR" ? "object_type IN ('VIEW', 'TABLE')" : " object_type = 'VIEW'")
|
||||
+ (hasFACFAC ? "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)
|
||||
|
||||
Reference in New Issue
Block a user