FCLT#57231 Geen ALGUSE maar RESUSE voor reserveringen

svn path=/Website/branches/v2019.1/; revision=41899
This commit is contained in:
Jos Groot Lipman
2019-04-02 08:42:32 +00:00
parent 33171e0dc3
commit 21d2b51539

View File

@@ -196,8 +196,8 @@ model_reservablerooms =
},
REST_GET: function _GET(params)
{
var urole = "fe"; // TODO: Moet echt niet ter zake doen
var autfunction = urole == "fe"? "WEB_ALGUSE" : "WEB_ALGMAN";
var scope = params.filter.scope || "fe";
var autfunction = { fe : "WEB_RESUSE", fo : "WEB_RESFOF", bo : "WEB_RESBOF", mi : "WEB_RESBAC" } [scope];
params.authparams = user.checkAutorisation(autfunction, null, null, true); // pessimistisch
// TODO: Add authorization