Navigation
eZ Documentation Center
 

This is outdated documentation made for eZ Publish Platform 5.1. It is being moved into the eZ Publish 5.x documentation, so please go there for most up-to-date documentation.

Skip to end of metadata
Go to start of metadata

Intro

Limitations are the building blocks of the permission system in 5.x, they provide the limitations you can apply to a given access right to limit the right to certain conditions.

Limitations consists of two parts:

  • Limitation (Value)
  • LimitationType

Certain limitations are also "RoleLimitations", meaning they can be used to limit the rights of a Role assignment, this is currently Subtree and Section limitation.

The Limitation represent the value, while LimitationType deals with the business logic surrounding how it actually works and is enforced.
LimitationTypes have two modes of operation in regards to permission logic (see eZ\Publish\SPI\Limitation\Type interface for more info):

MethodUsed when
evaluateEvaluating if user has access to a given object in a certain context (for instance a context can be Locations when object is Content), under the condition of the Limitation value(s)
getCriterionGenerates a Criterion using Limitation value and current user which SearchService by default applies to search criteria for filtering search based on permissions

List of Limitations

  • No labels