When force_login doesn't work, auth will fail
authorPascal Corpet <pascal.corpet@m4x.org>
Tue, 15 Jun 2010 22:32:08 +0000 (00:32 +0200)
committerPascal Corpet <pascal.corpet@m4x.org>
Tue, 15 Jun 2010 22:32:08 +0000 (00:32 +0200)
classes/platal.php

index 154491a..6c01c1b 100644 (file)
@@ -65,6 +65,7 @@ abstract class PlHook
             if ($this->hasType(DO_AUTH)) {
                 if (!$session->start($this->auth)) {
                     $platal->force_login($page);
+                    return PL_FORBIDDEN;
                 }
             } else {
                 return PL_FORBIDDEN;