Skip to content

Commit

Permalink
Clarify documentation around deprecation.
Browse files Browse the repository at this point in the history
allow('*') has been deprecated since 2.1 - attempt to make that clearer.

Fixes cakephp#3570
  • Loading branch information
markstory committed Dec 18, 2015
1 parent 4052f3e commit d65b974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/core-libraries/components/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,10 @@ mark actions as public actions by using ``AuthComponent::allow()``. By
marking actions as public, AuthComponent, will not check for a logged in
user, nor will authorize objects be checked::

// Allow all actions. CakePHP 2.0
// Allow all actions. CakePHP 2.0 (deprecated).
$this->Auth->allow('*');

// Allow all actions. CakePHP 2.1
// Allow all actions. CakePHP 2.1 and later.
$this->Auth->allow();

// Allow only the view and index actions.
Expand Down

0 comments on commit d65b974

Please sign in to comment.