diff options
author | iamchenxin <iamchenxin@gmail.com> | 2015-05-29 15:32:12 +0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-07-18 13:05:14 +0200 |
commit | 39f70cbdcb1c625e9fe9346132d24ec08862fca1 (patch) | |
tree | e6e2cb69d6ca7187718998417b809e2f5d5d15e6 /inc/remote.php | |
parent | 37ff2261e7a45a16a844d538a64b1fee54d2eb05 (diff) | |
download | rpg-39f70cbdcb1c625e9fe9346132d24ec08862fca1.tar.gz rpg-39f70cbdcb1c625e9fe9346132d24ec08862fca1.tar.bz2 |
add a Exception in hasAccess()
Diffstat (limited to 'inc/remote.php')
-rw-r--r-- | inc/remote.php | 2 |
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; |