mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove legacy test for all actions allowed (*) in startup and tidy code
This commit is contained in:
parent
24b68ec1db
commit
f3ba2bdb7d
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue