Skip to content
Snippets Groups Projects
Commit 00dd0e7e authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

acl ajax: add messages to returns

parent 07be12a5
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,14 @@ class action_plugin_acl extends DokuWiki_Action_Plugin {
parse_str($postData, $_POST);
}
if(!auth_isadmin()) return;
if(!checkSecurityToken()) return;
if(!auth_isadmin()) {
echo 'for admins only';
return;
}
if(!checkSecurityToken()) {
echo 'CRSF Attack';
return;
}
$ID = getID();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment