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 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
> <?
> function edit($id = null) {
>     $this->Acl->allow('group.all', '/users'); //Make sure they have
> permission
>     $this->Acl->allow('group.0', '/users');
>     $this->Acl->allow('user.root', '/users');
>
>     $access = $this->Acl->check($this->Session->read('User'), '/
> users');
>
>     if ($access === false)
>     {
>         echo "access denied";
>
>     }
>
>     else
>     {
>         echo "access allowed";
>
>     }
>     ...
> }
>
>
> >
>

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

Reply via email to