src/Auth/Acl.php
public function isAllowed($pRole, array $pResources)
	{
    	foreach ($pResources as $resource) {
    		if (! isset($this->_roles[$pRole]) or ! in_array($resource, $this->_roles[$pRole])) {
    			return false;
    		}
    	}

    	return true;
	}
public function isAllowed($pRole, array $pResources)
	{
    	foreach ($pResources as $resource) {
    		if (! isset($this->_roles[$pRole]) or ! in_array($resource, $this->_roles[$pRole])) {
    			return false;
    		}
    	}

    	return true;
	}
public function isAllowed ( $ pRole , array $ pResources ) { foreach ( $ pResources as $ resource ) { if ( ! isset ( $ this -> _roles [ $ pRole ] ) or ! in_array ( $ resource , $ this -> _roles [ $ pRole ] ) ) { return false ; } } return true ; }
Check if the role exists and if the resource is available with this role.

@param string $pRole Role identifier
@param array $pResource Required resources
Check if the role exists and if the resource is available with this role .