Return to Snippet

Revision: 26890
at May 14, 2010 08:48 by TioSolid

Initial Code
//For example if we want to allow all users access to the index and view methods ( but not //any other), we would do the following (inside a controller)

function beforeFilter() {

Initial URL

Initial Description
Another common use of Auth component variables is to allow access to certain methods without the user being logged in (by default Auth restricts access to every action except the login and logout methods).

Initial Title
Allow access to a specific action (ACO)

Initial Tags

Initial Language