PCHW#48007 -- _ autorisatie groepen niet meer zichtbaar

svn path=/Website/branches/v2017.2/; revision=35804
This commit is contained in:
Arthur Egberink
2017-10-24 13:06:52 +00:00
parent 2961bcba30
commit 3095e9b3c2
2 changed files with 12 additions and 3 deletions

View File

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

View File

@@ -100,6 +100,7 @@ function transform_filter(filter)
v_filter = v_filter.replace("\"", "");
filter.id = v_filter;
}
filter.nointernal = 1;
return filter;
}