From f3ba2bdb7d86c0f3809b342ffaf3bd54de8c3471 Mon Sep 17 00:00:00 2001 From: Thom Seddon Date: Fri, 24 Aug 2012 19:30:25 +0100 Subject: [PATCH] Remove legacy test for all actions allowed (*) in startup and tidy code --- lib/Cake/Controller/Component/AuthComponent.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index c0869571f..e9e01b611 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -289,13 +289,7 @@ class AuthComponent extends Component { $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; }