Fix buggy commit which broke auth
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 15 Jan 2010 18:22:56 +0000 (19:22 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 15 Jan 2010 18:27:27 +0000 (19:27 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
class.xorg.auth.php

index 675e5d9..2ae8852 100644 (file)
@@ -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();
   }