Skip to content

Commit

Permalink
Remove legacy test for all actions allowed (*) in startup and tidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomseddon committed Aug 24, 2012
1 parent 24b68ec commit f3ba2bd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit f3ba2bd

Please sign in to comment.