lib/Auth/Acl.php
public function getContextualAcl()
    {
        $acl = $this->getRules();
        if (!$acl->hasRole($this->getContextId())) {
            $contextRoles = $this->getContext()->getRoles();
            if ($contextRoles instanceof RoleBucket) {
                $contextRoles = $contextRoles->toArray();
            }
            $acl->addRole(new Role($this->getContextId()), $contextRoles);
        }
        return $acl;
    }
public function getContextualAcl()
    {
        $acl = $this->getRules();
        if (!$acl->hasRole($this->getContextId())) {
            $contextRoles = $this->getContext()->getRoles();
            if ($contextRoles instanceof RoleBucket) {
                $contextRoles = $contextRoles->toArray();
            }
            $acl->addRole(new Role($this->getContextId()), $contextRoles);
        }
        return $acl;
    }
public function getContextualAcl ( ) { $ acl = $ this -> getRules ( ) ; if ( ! $ acl -> hasRole ( $ this -> getContextId ( ) ) ) { $ contextRoles = $ this -> getContext ( ) -> getRoles ( ) ; if ( $ contextRoles instanceof RoleBucket ) { $ contextRoles = $ contextRoles -> toArray ( ) ; } $ acl -> addRole ( new Role ( $ this -> getContextId ( ) ) , $ contextRoles ) ; } return $ acl ; }
Set up ACL rules with the current context

@return AclRules
Set up ACL rules with the current context