Use ACLs to check the user that's logged in at the beginning of your admin
methods.

On Sun, Jan 9, 2011 at 10:24 AM, tubiz <[email protected]> wrote:

> Please i am already done creating a CakePhp Application but the
> problem i am having presently is how to restrict users access to the
> admin area. I am using the users table both for my site users and also
> for the administrator as well. I have already created a field called
> role in the Users table and i have given the administrator the role of
> admin.
> Please how do i allow access to the administrator area to only the
> users who have an admin role.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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