From 69b2ad7556ff258731419c653581faa7612d3b4f Mon Sep 17 00:00:00 2001 From: phpnut Date: Tue, 25 Dec 2007 08:11:26 +0000 Subject: [PATCH] "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 --- cake/libs/controller/components/auth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/libs/controller/components/auth.php b/cake/libs/controller/components/auth.php index ce704bd09..0f231b4ff 100644 --- a/cake/libs/controller/components/auth.php +++ b/cake/libs/controller/components/auth.php @@ -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); } }