I'm using obAuth component in the app_controller. This component
(ob_auth.php) references the 'Users' and 'Groups' table. I then take
the userID data and give it to my ACL list for permissions via
beforeFileter in the app_controller.
obAuth has a function, 'getUserId()', that uses the 'user' model to
find the user's id. SO this data isn't being pulled from the session,
but instead a database.
When viewing /users/login/ with the getUserId() function buried in the
controller and accessing the 'users' table just fine via a call in
ob_auth.php/
function getUserId(){
return (!empty($this->user)) ? $this->user["{$this->user_model}"]
['id'] : 'false';
}
However, when I move this getUserId function into a beforefilter() in
the app_controller.php.... obAuth can't seem to find the users table
within itself via this->users.
It seems that whet this->obAuth->getUserId is called in the
app_controller via beforefilter(), the tables for obAuth are no longer
availalbe. Any thoughts?
On another note....As a temp fix, I simply did the ACL check with the
username in the session variable as the session data is written
perfectly from the login page. So basically I'm having the acl check
the session data vs checking the user tabe. Is this a bad idea?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---