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