$session->read('Auth.User.column');
You can access the user's record from within a view like the above, so as
long as your group is specified in the user record (say ... group_id)
if($session->read('Auth.User.group_id') == 'superuser') {
....
}
**** This assumes you are using the Auth component.
--
Kind Regards
Stephen @ NinjaCoderMonkey
www.ninjacodermonkey.co.uk
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php