Skip to content
Snippets Groups Projects
Commit 39f70cbd authored by iamchenxin's avatar iamchenxin Committed by Andreas Gohr
Browse files

add a Exception in hasAccess()

parent 37ff2261
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ class RemoteAPI {
global $INPUT;
if (!$conf['remote']) {
return false;
throw new RemoteAccessDeniedException('server error. RPC server not enabled.',-32604); //should not be here,just throw
}
if(!$conf['useacl']) {
return true;
......
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