Skip to content

Commit

Permalink
add a Exception in hasAccess()
Browse files Browse the repository at this point in the history
  • Loading branch information
iamchenxin authored and splitbrain committed Jul 18, 2015
1 parent 37ff226 commit 39f70cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/remote.php
Expand Up @@ -234,7 +234,7 @@ public function hasAccess() {
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;
Expand Down

0 comments on commit 39f70cb

Please sign in to comment.