Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f3ba2bdb7d86c0f3809b342ffaf3bd54de8c3471 1 parent 24b68ec
@thomseddon thomseddon authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/Cake/Controller/Component/AuthComponent.php
View
8 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.