summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamchenxin <iamchenxin@gmail.com>2015-05-29 15:32:12 +0800
committerAndreas Gohr <andi@splitbrain.org>2015-07-18 13:05:14 +0200
commit39f70cbdcb1c625e9fe9346132d24ec08862fca1 (patch)
treee6e2cb69d6ca7187718998417b809e2f5d5d15e6
parent37ff2261e7a45a16a844d538a64b1fee54d2eb05 (diff)
downloadrpg-39f70cbdcb1c625e9fe9346132d24ec08862fca1.tar.gz
rpg-39f70cbdcb1c625e9fe9346132d24ec08862fca1.tar.bz2
add a Exception in hasAccess()
-rw-r--r--inc/remote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/remote.php b/inc/remote.php
index 861353a19..3e032049d 100644
--- a/inc/remote.php
+++ b/inc/remote.php
@@ -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;