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

This commit is contained in:
Thom Seddon 2012-08-24 19:30:25 +01:00
parent 24b68ec1db
commit f3ba2bdb7d

View file

@ -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;
}