Re: ACL problem, need help!

2007-03-21 Thread Langdon Stevenson
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')

Re: ACL problem, need help!

2007-03-21 Thread cc96ai
$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

Re: ACL problem, need help!

2007-03-21 Thread digital spaghetti
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

Re: ACL problem, need help!

2007-03-21 Thread Langdon Stevenson
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,

ACL problem, need help!

2007-03-21 Thread cc96ai
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