diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index c0869571f9a..e9e01b611d0 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -289,13 +289,7 @@ public function startup(Controller $controller) { $url = Router::normalize($url); $loginAction = Router::normalize($this->loginAction); - $allowedActions = $this->allowedActions; - $isAllowed = ( - $this->allowedActions == array('*') || - in_array($action, array_map('strtolower', $allowedActions)) - ); - - if ($loginAction != $url && $isAllowed) { + if ($loginAction != $url && in_array($action, array_map('strtolower', $this->allowedActions))) { return true; }