> I believe that's the default behavior in AclComponent for protected
> pages.

I meant AuthComponent :).

> Another question: where do you set if a page requires a user or admin?

That belongs under the ACL component, Auth just shows they are indeed
logged in. ACL says what they can do. In my setup I only use ACL for
admin functions. I wrote a few methods in app_controller that checks
the current user against a Aro, so I can say $this-
>requireAro('admin') to assure that the user is an admin.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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