Skip to content
This repository
Browse code

Remove legacy test for all actions allowed (*) in startup and tidy code

  • Loading branch information...
commit f3ba2bdb7d86c0f3809b342ffaf3bd54de8c3471 1 parent 24b68ec
Thom Seddon authored August 24, 2012
8  lib/Cake/Controller/Component/AuthComponent.php
@@ -289,13 +289,7 @@ public function startup(Controller $controller) {
289 289
 		$url = Router::normalize($url);
290 290
 		$loginAction = Router::normalize($this->loginAction);
291 291
 
292  
-		$allowedActions = $this->allowedActions;
293  
-		$isAllowed = (
294  
-			$this->allowedActions == array('*') ||
295  
-			in_array($action, array_map('strtolower', $allowedActions))
296  
-		);
297  
-
298  
-		if ($loginAction != $url && $isAllowed) {
  292
+		if ($loginAction != $url && in_array($action, array_map('strtolower', $this->allowedActions))) {
299 293
 			return true;
300 294
 		}
301 295
 

0 notes on commit f3ba2bd

Please sign in to comment.
Something went wrong with that request. Please try again.