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')
$this->Session->read('User') is the object of the User ,
should I only pass user->id into it ?
2nd, i forgot which version I downloaded , how could I check it ?
Thanks
Calvin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
What version of Cake are you using? ACL in 1.2 is currently not
working, as it's in development.
If it's 1.1, I know there is something in the trac about ACL, check if
your problem is related.
Tane
On 3/21/07, cc96ai <[EMAIL PROTECTED]> wrote:
>
> I just did a simple test on ACL , but i m not
Hi cc96ai
My first thought would be to check what values are being passed. I
would guess that you have a miss-match between Aro and the value from
$this->Session->read('User').
Regards,
Langdon
cc96ai wrote:
> I just did a simple test on ACL , but i m not sure which part that I
> did wrong,
I just did a simple test on ACL , but i m not sure which part that I
did wrong,
it always points to "access denied" for me once, (i m testing on
single action, instead of do beforeFilter() )
ARO tree
group.all
|-group.0
|-user.root
I login as root user
Acl->allow('group.all', '/users'); //Mak