"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:
phpnut 2007-12-25 08:11:26 +00:00
parent 9c6f44006f
commit 69b2ad7556

View file

@ -495,6 +495,9 @@ class AuthComponent extends Object {
if (empty($args)) {
$this->allowedActions = array('*');
} else {
if (isset($args[0]) && is_array($args[0])) {
$args = $args[0];
}
$this->allowedActions = array_merge($this->allowedActions, $args);
}
}