Hi guys,

Let's say, I have User model and it "belongsTo" a Group Model...

I use AuthComponent to authenticate users like in user login. but when
I dump the
$_SESSION the user object in Session doesn't have its association to
the Group Model.

what is the proper way to associate my user in active session to the
Group model,so I could classify if the user is a super user like,

               if($this->Auth->user('Group.alias') == 'superuser') {
                         ...


note: I am just asking the guys who might have other opinions on
this...
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to