FSN#34822 FACFAC only rapportages

svn path=/Website/trunk/; revision=28936
This commit is contained in:
Jos Groot Lipman
2016-04-14 08:01:42 +00:00
parent 08472fc8ae
commit 7a09925be3

View File

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