Tuesday, November 29, 2011

Re: role-base authentication

If you don't want to keep access information for each record in the database you can just check for the role after authentication (and also you can put it in your AppController beforeFilter):

if($this->Session->read('Auth.User.role') == 'admin') {
...
}

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: