Handler get_rights is not in the core module anymore.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 23 Dec 2008 10:54:22 +0000 (11:54 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 23 Dec 2008 10:54:22 +0000 (11:54 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/core.php

index 3d6421b..0ab9d9c 100644 (file)
@@ -31,7 +31,6 @@ class CoreModule extends PLModule
             'purge_cache' => $this->make_hook('purge_cache', AUTH_COOKIE, 'admin'),
             'kill_sessions' => $this->make_hook('kill_sessions', AUTH_COOKIE, 'admin'),
             'sql_errors'  => $this->make_hook('sqlerror', AUTH_COOKIE, 'admin'),
-            'get_rights'  => $this->make_hook('get_rights', AUTH_MDP, 'admin'),
 
             'wiki_help'    => $this->make_hook('wiki_help', AUTH_PUBLIC),
             'wiki_preview' => $this->make_hook('wiki_preview', AUTH_COOKIE, 'user', NO_AUTH),
@@ -120,16 +119,6 @@ class CoreModule extends PLModule
         kill_sessions();
     }
 
-    function handler_get_rights(&$page, $level)
-    {
-        if (S::suid()) {
-            $page->kill('Déjà en SUID');
-        }
-        Platal::session()->startSUID(S::i('uid'), $level);
-
-        pl_redirect('/');
-    }
-
     function handler_bug(&$page)
     {
         global $globals;