Hi cc96ai

> $this->Session->read('User') is the object of the User ,
> should I only pass user->id into it ?

When you call:

   $this->Acl->check($this->Session->read('User'), '/users');

you are asking Cake:

1. Is there is an Aro record with the 'alias' value of: 
$this->Session->read('User')

2. That is linked to an Aco record with the 'alias' value of: '/users'

Therefore you need to pass a string to Acl->check that matches an Aro 
alias.  From what you say, you are passing the whole User array, 
therefore, there can be no match, and Acl->check will fail.

Regards,
Langdon


--~--~---------~--~----~------------~-------~--~----~
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