From: Raphaël Barrois Date: Fri, 15 Jan 2010 18:22:56 +0000 (+0100) Subject: Fix buggy commit which broke auth X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=93241aefb43a89a651dfa1bc11821e6f229b2e3b Fix buggy commit which broke auth Signed-off-by: Raphaël Barrois --- 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(); }