Don't require AUTH_MDP to lower permissions of the user.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 6 Oct 2010 12:29:12 +0000 (14:29 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 6 Oct 2010 12:29:12 +0000 (14:29 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/admin.php

index 6d6660b..c2a5901 100644 (file)
@@ -25,7 +25,7 @@ class AdminModule extends PLModule
     {
         return array(
             'phpinfo'                      => $this->make_hook('phpinfo',                AUTH_MDP, 'admin'),
-            'get_rights'                   => $this->make_hook('get_rights',             AUTH_MDP, 'admin'),
+            'get_rights'                   => $this->make_hook('get_rights',             AUTH_COOKIE, 'admin'),
             'admin'                        => $this->make_hook('default',                AUTH_MDP, 'admin'),
             'admin/dead-but-active'        => $this->make_hook('dead_but_active',        AUTH_MDP, 'admin'),
             'admin/deaths'                 => $this->make_hook('deaths',                 AUTH_MDP, 'admin'),