public function deny($action, $resource = null, $resourceId = null, $conditions = [])
    {
        $actions = (array) $action;
        $resource = $this->convertResourceToObject($resource, $resourceId);
        $permissions = $this->getPermissions();

        foreach ($actions as $action) {
            $this->clearPermission($action, $resource, $permissions);

            $this->storePermission(new Restriction($action, $resource, $conditions));
        }
    }