PCHW#48007 -- _ autorisatie groepen niet meer zichtbaar
svn path=/Website/branches/v2017.2/; revision=35804
This commit is contained in:
@@ -73,7 +73,7 @@ function model_fac_groep(groep_key, params)
|
||||
"label": "Aanmaakdatum",
|
||||
"typ": "datetime",
|
||||
"readonly": true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.includes = {
|
||||
@@ -115,8 +115,16 @@ function model_fac_groep(groep_key, params)
|
||||
+ " AND ff.fac_functie_code = 'WEB_FACTAB')");
|
||||
}
|
||||
// _groepen geven we nooit mee
|
||||
xparams.GET.wheres.push("SUBSTR(fac_groep_omschrijving, 0, 1) <> '_'");
|
||||
this.REST_GET = generic_REST_GET(this, xparams);
|
||||
|
||||
this.REST_GET = function (params)
|
||||
{
|
||||
if ("filter" in params && params.filter.nointernal)
|
||||
xparams.GET.wheres.push("SUBSTR(fac_groep_omschrijving, 0, 1) <> '_'");
|
||||
|
||||
// Verder met de default
|
||||
return generic_REST_GET(this, xparams)(params)
|
||||
}
|
||||
|
||||
this.REST_POST = generic_REST_POST(this);
|
||||
this.REST_PUT = generic_REST_PUT(this);
|
||||
this.REST_DELETE = generic_REST_DELETE(this);
|
||||
|
||||
@@ -100,6 +100,7 @@ function transform_filter(filter)
|
||||
v_filter = v_filter.replace("\"", "");
|
||||
filter.id = v_filter;
|
||||
}
|
||||
filter.nointernal = 1;
|
||||
return filter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user