404/403 do not require auth.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 1 Apr 2008 08:56:53 +0000 (10:56 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 1 Apr 2008 08:56:53 +0000 (10:56 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php

index cec37f2..4c1f60a 100644 (file)
@@ -259,7 +259,7 @@ class Platal
         }
 
         $val = call_user_func_array($hook['hook'], $args);
-        if ($val & PL_DO_AUTH) {
+        if ($val == PL_DO_AUTH) {
             // The handler need a better auth with the current args
             if (!call_user_func(array($globals->session, 'doAuth'))) {
                 $this->force_login($page);