404/403 do not require auth.
[platal.git] / 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);