FCLT#57231 Geen ALGUSE maar RESUSE voor reserveringen
svn path=/Website/branches/v2019.1/; revision=41899
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user