From 93241aefb43a89a651dfa1bc11821e6f229b2e3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 15 Jan 2010 19:22:56 +0100 Subject: [PATCH] Fix buggy commit which broke auth MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- class.xorg.auth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class.xorg.auth.php b/class.xorg.auth.php index 675e5d9..2ae8852 100644 --- a/class.xorg.auth.php +++ b/class.xorg.auth.php @@ -224,10 +224,10 @@ class xorgAuth extends dcAuth { public function userID() { $this->buildFromSession(); -// $isadmin = preg_match('@/admin/[^/]+\.php$@i', $_SERVER['SCRIPT_FILENAME']); -// if (!$isadmin) { -// return null; -// } + $isadmin = preg_match('@/admin/[^/]+\.php$@i', $_SERVER['SCRIPT_FILENAME']); + if (!$isadmin) { + return null; + } return parent::userID(); } -- 2.1.4