X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=class.xorg.auth.php;h=675e5d9c0e17ab15e73f2b14168d7b4f4faed507;hb=1ad0c45cacf86a7532a530cb5ae5f116eefcdedb;hp=d593724a28c60cdcf42ad5e2881f26b352edc758;hpb=58266dd354043b305cadf249cbbb5a4f6346eedd;p=dotclear.git diff --git a/class.xorg.auth.php b/class.xorg.auth.php index d593724..675e5d9 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(); } @@ -240,7 +240,7 @@ class xorgAuth extends dcAuth { $this->buildFromSession(); if ($n == 'xorg_group_member') { global $core; - if ($core->blog->settings('xorg_blog_owner') != $_SESSION['xorg-group']) { + if ($core->blog->settings->get('xorg_blog_owner') != $_SESSION['xorg-group']) { return false; } $perm = $this->xorg_infos['grpauth'];