summaryrefslogtreecommitdiff
path: root/inc/remote.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-03-08 15:51:47 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-03-08 15:51:47 +0100
commitd27c0c1701c342ed9d6553163a71ac5cd7314a9f (patch)
treef565a5dd36cceba6abd63a74941caa719e749c5d /inc/remote.php
parent9b50ec5c405ff215dd0d67491752f3c56ce7749e (diff)
parent49f299d6a332f8755f3b7a20c414702cca9c5ab8 (diff)
downloadrpg-d27c0c1701c342ed9d6553163a71ac5cd7314a9f.tar.gz
rpg-d27c0c1701c342ed9d6553163a71ac5cd7314a9f.tar.bz2
Merge pull request #588 from splitbrain/purge_E_ALL
Purge error log messages to support use of E_ALL
Diffstat (limited to 'inc/remote.php')
-rw-r--r--inc/remote.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/remote.php b/inc/remote.php
index 2ef28afd2..e27aa74f8 100644
--- a/inc/remote.php
+++ b/inc/remote.php
@@ -169,6 +169,9 @@ class RemoteAPI {
public function hasAccess() {
global $conf;
global $USERINFO;
+ /** @var Input $INPUT */
+ global $INPUT;
+
if (!$conf['remote']) {
return false;
}
@@ -179,7 +182,7 @@ class RemoteAPI {
return true;
}
- return auth_isMember($conf['remoteuser'], $_SERVER['REMOTE_USER'], (array) $USERINFO['grps']);
+ return auth_isMember($conf['remoteuser'], $INPUT->server->str('REMOTE_USER'), (array) $USERINFO['grps']);
}
/**