Hi,

Maybe a bit off-topic but how can I use the requested action in the
model I user for authorization?
I use type 'model' as authorization:
$this->Auth->authorize = array('model'=>'User');

and I have a function in my user model
function isAuthorized($user = null)
{
 //...
}

In that function I want to check the requested action if it is a admin
action. Action is in the params array in the Auth component
But if I use $this or $this->Auth->$params['action'] is has an error
because $this is the User object.

thnx in advance!
- Charlie


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