guess you could deal with this through ACL (which is likely overkill)
or add an isAuthorized() method to PageController. Return false if you
don't want the User to see a page.
Or just check the param in display() and redirect if needed.
On Sun, May 3, 2009 at 1:19 PM, AGD <anibaldamiao@gmail.com> wrote:
>
> I'm using
>
> $this->Auth->allow('index');
>
> in my controllers wildly, but cannot figure out how to allow one
> specific page (like the home). Has anyone experienced this, and how
> did you solved it?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment