lib/Auth/Acl.php
public function isAllowed($resource = null, $privilege = null)
    {
        if (is_array($privilege)) {
            foreach ($privilege as $privilegeSingular) {
                if ($this->isAllowed($resource, $privilegeSingular)) {
                    return true;
                }
            }
            return false;
        }
        try {
            $result = $this->getContextualAcl()->isAllowed($this->getContextId(), $resource, $privilege);
        } catch (InvalidArgumentException $e) {
            return false;
        }
        return $result;
    }
public function isAllowed($resource = null, $privilege = null)
    {
        if (is_array($privilege)) {
            foreach ($privilege as $privilegeSingular) {
                if ($this->isAllowed($resource, $privilegeSingular)) {
                    return true;
                }
            }
            return false;
        }
        try {
            $result = $this->getContextualAcl()->isAllowed($this->getContextId(), $resource, $privilege);
        } catch (InvalidArgumentException $e) {
            return false;
        }
        return $result;
    }
public function isAllowed ( $ resource = null , $ privilege = null ) { if ( is_array ( $ privilege ) ) { foreach ( $ privilege as $ privilegeSingular ) { if ( $ this -> isAllowed ( $ resource , $ privilegeSingular ) ) { return true ; } } return false ; } try { $ result = $ this -> getContextualAcl ( ) -> isAllowed ( $ this -> getContextId ( ) , $ resource , $ privilege ) ; } catch ( InvalidArgumentException $ e ) { return false ; } return $ result ; }
Check for a access to a resource

@param  Zend\Permissions\Acl\Resource\ResourceInterface|string    $resource
@param  string|array                                              $privilege
@return boolean
Check for a access to a resource