Should fix access for unlogged users.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 6 Oct 2010 13:15:43 +0000 (15:15 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 6 Oct 2010 13:15:43 +0000 (15:15 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xorgpage.php

index 3c5cc1c..2bc6d59 100644 (file)
@@ -34,7 +34,7 @@ class XorgPage extends PlPage
         $this->addJsLink('wiki.js');
         $this->addJsLink('xorg.js');
         $this->setTitle('le site des élèves et anciens élèves de l\'École polytechnique');
-        if (S::user()->checkPerms('admin')) {
+        if (S::logged() && S::user()->checkPerms('admin')) {
             $types = array(S::user()->type);
             $perms = DirEnum::getOptions(DirEnum::ACCOUNTTYPES);
             ksort($perms);