From: Florent Bruneau Date: Tue, 23 Dec 2008 10:54:22 +0000 (+0100) Subject: Handler get_rights is not in the core module anymore. X-Git-Tag: core/1.0.1~44 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c21041687b7e324a1804a712fe2580593fb9cbe5;p=platal.git Handler get_rights is not in the core module anymore. Signed-off-by: Florent Bruneau --- diff --git a/modules/core.php b/modules/core.php index 3d6421b..0ab9d9c 100644 --- a/modules/core.php +++ b/modules/core.php @@ -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;