Here is how I solve this problem:

if (isset($this->params[Configure::read('Routing.admin')]))
        $this->Auth->allow( "" );
else
{
        if ($this->action != "login" && $this->action != "logout") //put here
any actions you want to deny access to
                $this->Auth->allow($this->action);
}

On Feb 9, 3:01 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Feb 8, 2008 7:57 PM, Neil <[EMAIL PROTECTED]> wrote:
>
>
>
> > $this->Auth->allow('action1', 'action2', 'action3')
> > vs
> > $this->Auth->allow('login');
>
> > whats the difference?
>
> The difference is that the Auth component automatically allows you to
> access an action called 'login'.  If you do
> $this->Auth->allow('login'),  I can 100% guarantee that things will
> not work properly.
>
> $this->Auth->allow(...) specifies what actions you do not want to be
> protected by authentication.
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to