diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index d17d7e6a138..27c63520df0 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -425,6 +425,7 @@ public function constructAuthorize() { * * `$this->Auth->allow(array('edit', 'add'));` or * `$this->Auth->allow('edit', 'add');` + * `$this->Auth->allow();` to allow all actions. * * allow() also supports '*' as a wildcard to mean all actions. * @@ -462,9 +463,9 @@ public function allow($action = null) { */ public function deny($action = null) { $args = func_get_args(); - if(empty($args)){ + if (empty($args)) { $this->allowedActions = array(); - }else{ + } else { if (isset($args[0]) && is_array($args[0])) { $args = $args[0]; }