API2 perslid authorisatie aangescherpt: voor PUT en POST is voortaan PRSMAN vereist

svn path=/Website/trunk/; revision=36901
This commit is contained in:
Jos Groot Lipman
2018-02-08 15:22:29 +00:00
parent 97f3e856eb
commit d7d6859855

View File

@@ -57,6 +57,8 @@ function model_prs_perslid(params)
this.records_title = L("prs_perslid_m");
this.autfunction = params.internal?false:"WEB_PRSSYS"; // we controleren zelf
this.fields = {
"id": {
"dbs": "prs_perslid_key",
@@ -353,8 +355,11 @@ function model_prs_perslid(params)
return generic_REST_POST(this)(params, jsondata, parent_key)
}
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
if (user.has("WEB_PRSMAN"))
{
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
}
}
%>