From: Florent Bruneau Date: Tue, 1 Apr 2008 08:56:53 +0000 (+0200) Subject: 404/403 do not require auth. X-Git-Tag: xorg/0.9.16~32 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=sidebyside;h=cace61cfd2f571d9741a6cfce72e91b5859c1047;hp=6fd0e9f1ec3e9f4abc24fae9923f0e9b0375cf5c;p=platal.git 404/403 do not require auth. Signed-off-by: Florent Bruneau --- diff --git a/classes/platal.php b/classes/platal.php index cec37f2..4c1f60a 100644 --- a/classes/platal.php +++ b/classes/platal.php @@ -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);