src/JaztecAcl/Direct/AuthorizedDirectObject.php
public function checkAcl($privilege)
    {
        // Find the base resource name this module is given.
        $moduleName = substr(get_class($this), 0, strpos(get_class($this), '\\'));
        $config     = $this->getServiceLocator()->get('Config');
        $baseName   = $config['jaztec_acl']['name'][$moduleName];
        $allowed    = $this->getAclService()->isAllowed($this->getRole(), $this->aclDenominator, $privilege, $baseName);

        return $allowed;
    }
public function checkAcl($privilege)
    {
        // Find the base resource name this module is given.
        $moduleName = substr(get_class($this), 0, strpos(get_class($this), '\\'));
        $config     = $this->getServiceLocator()->get('Config');
        $baseName   = $config['jaztec_acl']['name'][$moduleName];
        $allowed    = $this->getAclService()->isAllowed($this->getRole(), $this->aclDenominator, $privilege, $baseName);

        return $allowed;
    }
public function checkAcl ( $ privilege ) { // Find the base resource name this module is given. $ moduleName = substr ( get_class ( $ this ) , 0 , strpos ( get_class ( $ this ) , '\\' ) ) ; $ config = $ this -> getServiceLocator ( ) -> get ( 'Config' ) ; $ baseName = $ config [ 'jaztec_acl' ] [ 'name' ] [ $ moduleName ] ; $ allowed = $ this -> getAclService ( ) -> isAllowed ( $ this -> getRole ( ) , $ this -> aclDenominator , $ privilege , $ baseName ) ; return $ allowed ; }
Checks the ACL registry.

@param  string  $privilege
@return boolean
Checks the ACL registry .