src/Lock.php
protected function resolveRestrictions($permissions, $action, Resource $resource)
    {
        foreach ($permissions as $permission) {
            // If we've found a matching restriction, return false.
            if ($permission instanceof Restriction && ! $permission->isAllowed($this, $action, $resource)) {
                return false;
            }
        }

        return true;
    }
protected function resolveRestrictions($permissions, $action, Resource $resource)
    {
        foreach ($permissions as $permission) {
            // If we've found a matching restriction, return false.
            if ($permission instanceof Restriction && ! $permission->isAllowed($this, $action, $resource)) {
                return false;
            }
        }

        return true;
    }
protected function resolveRestrictions ( $ permissions , $ action , Resource $ resource ) { foreach ( $ permissions as $ permission ) { // If we've found a matching restriction, return false. if ( $ permission instanceof Restriction && ! $ permission -> isAllowed ( $ this , $ action , $ resource ) ) { return false ; } } return true ; }
Check if the given restrictions prevent the given action and resource to pass

@param \BeatSwitch\Lock\Permissions\Permission[] $permissions
@param string $action
@param \BeatSwitch\Lock\Resources\Resource $resource
@return bool
Check if the given restrictions prevent the given action and resource to pass