mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
"Closes #3338, Allow AuthComponent::allow to take an array as an argument"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6251 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9c6f44006f
commit
69b2ad7556
1 changed files with 3 additions and 0 deletions
|
@ -495,6 +495,9 @@ class AuthComponent extends Object {
|
||||||
if (empty($args)) {
|
if (empty($args)) {
|
||||||
$this->allowedActions = array('*');
|
$this->allowedActions = array('*');
|
||||||
} else {
|
} else {
|
||||||
|
if (isset($args[0]) && is_array($args[0])) {
|
||||||
|
$args = $args[0];
|
||||||
|
}
|
||||||
$this->allowedActions = array_merge($this->allowedActions, $args);
|
$this->allowedActions = array_merge($this->allowedActions, $args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue