src/Lock.php
protected function resolvePrivileges($permissions, $action, Resource $resource)
    {
        // Search for privileges in the permissions.
        foreach ($permissions as $permission) {
            // If we've found a valid privilege, return true.
            if ($permission instanceof Privilege && $permission->isAllowed($this, $action, $resource)) {
                return true;
            }
        }

        return false;
    }
protected function resolvePrivileges($permissions, $action, Resource $resource)
    {
        // Search for privileges in the permissions.
        foreach ($permissions as $permission) {
            // If we've found a valid privilege, return true.
            if ($permission instanceof Privilege && $permission->isAllowed($this, $action, $resource)) {
                return true;
            }
        }

        return false;
    }
protected function resolvePrivileges ( $ permissions , $ action , Resource $ resource ) { // Search for privileges in the permissions. foreach ( $ permissions as $ permission ) { // If we've found a valid privilege, return true. if ( $ permission instanceof Privilege && $ permission -> isAllowed ( $ this , $ action , $ resource ) ) { return true ; } } return false ; }
Check if the given privileges allow 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 privileges allow the given action and resource to pass