Skip to content

Commit

Permalink
Update en/core-libraries/components/authentication.rst
Browse files Browse the repository at this point in the history
Added a warning about allow all not working with scaffolded methods
  • Loading branch information
jsdavis02 committed Jan 18, 2013
1 parent 9a1c00b commit 2f834f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions en/core-libraries/components/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,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::

.. warning::

If your using scaffolding, allow all will not identify and allow the scaffolded methods. You have to specify their action names.

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

Expand Down

0 comments on commit 2f834f1

Please sign in to comment.