FSN#34822 FACFAC only rapportages
svn path=/Website/trunk/; revision=28936
This commit is contained in:
@@ -86,7 +86,16 @@ function model_reportsx(usrrap_key, rapparams)
|
||||
|
||||
var hasFACFAC = user.has("WEB_FACFAC"); // Die mag ook tabellen doen
|
||||
if (!hasFACFAC)
|
||||
{
|
||||
this.fields.lastrefresh.hidden_fld = true;
|
||||
this.fields.authorization.foreign =
|
||||
{
|
||||
"tbl": "fac_functie",
|
||||
"key": "fac_functie_key",
|
||||
"desc": "fac_functie_omschrijving || ' (' || fac_functie_code || ')'",
|
||||
"where": "fac_functie_code NOT IN ('WEB_FACFAC', 'WEB_FACTAB')"
|
||||
}
|
||||
}
|
||||
|
||||
this._analyze_fields = function (dbfields, params, jsondata) /* analyseer inkomende data, common voor PUT en POST */
|
||||
{
|
||||
@@ -116,8 +125,8 @@ function model_reportsx(usrrap_key, rapparams)
|
||||
+ " (SELECT w.fac_functie_key"
|
||||
+ " FROM fac_v_webgebruiker W"
|
||||
+ " WHERE w.prs_perslid_key = " + user_key + ")");
|
||||
if (user.has("WEB_UDRMAN"))
|
||||
{
|
||||
if (user.has("WEB_UDRMAN")) // Met UDRMAN hoef je er geen rechten op te hebben
|
||||
{ // Uitzondeing: FACFAC en FACTAB, daar moet je altijd rechten op hebben
|
||||
whereor.push("fac_functie_key NOT IN"
|
||||
+ " (SELECT fac_functie_key"
|
||||
+ " FROM fac_functie"
|
||||
|
||||
Reference in New Issue
Block a user