Skip to content

Commit

Permalink
Fix whitespace and add usage to doc block.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 1, 2011
1 parent f2b47e3 commit bf43a5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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];
}
Expand Down

0 comments on commit bf43a5e

Please sign in to comment.