Permalink
Browse files

Fix whitespace and add usage to doc block.

  • Loading branch information...
1 parent f2b47e3 commit bf43a5ee24838755dcc3007a59a55e1f800d6297 @markstory markstory committed Oct 31, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 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];
}

0 comments on commit bf43a5e

Please sign in to comment.