eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::removePolicyLimitations PHP Method

removePolicyLimitations() abstract public method

Removes a policy from a role.
abstract public removePolicyLimitations ( mixed $policyId )
$policyId mixed
    public abstract function removePolicyLimitations($policyId);

Usage Example

Example #1
0
 /**
  * Update a policy.
  *
  * Replaces limitations values with new values.
  *
  * @param \eZ\Publish\SPI\Persistence\User\Policy $policy
  */
 public function updatePolicy(Policy $policy)
 {
     $policy = clone $policy;
     $this->limitationConverter->toLegacy($policy);
     $this->roleGateway->removePolicyLimitations($policy->id);
     $this->roleGateway->addPolicyLimitations($policy->id, $policy->limitations === '*' ? array() : $policy->limitations);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway::removePolicyLimitations