Fix PL_DO_AUTH.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 22 Oct 2008 19:52:16 +0000 (21:52 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 22 Oct 2008 19:52:16 +0000 (21:52 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php

index 7ea5a27..94d9632 100644 (file)
@@ -273,7 +273,7 @@ abstract class Platal
         $val = call_user_func_array($hook['hook'], $args);
         if ($val == PL_DO_AUTH) {
             // The handler need a better auth with the current args
-            if (!$session->start($hook['auth'])) {
+            if (!$session->start($session->loggedLevel())) {
                 $this->force_login($page);
             }
             $val = call_user_func_array($hook['hook'], $args);