Limitations are part of the permissions system. They limit the access granted to users by Policies. While a Policy grants the user access to a function, Limitations narrow it down by different criteria.
Limitations consist of two parts:
Certain Limitations also serve as Role Limitations, which means they can be used to limit the rights of a Role assignment. Currently this covers Subtree of Location and Section Limitations.
Limitation represents 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):
||Evaluates if the User has access to a given object in a certain context (for instance the context can be Locations when the object is
Core Policies with Limitations are defined in
Each function in one of the five modules (content, section, state, user, workflow) can be assigned different Limitations.
Functions without Limitations
If a function is not mentioned below, it can have no Limitations.
All Content Policies can be assigned the Content Type and Section Limitation. Beyond that the following Limitations are available:
- Subtree of Location
- Owner of Parent
- Content Type Group of Parent
- Content Type of Parent
- Parent Depth
See Limitation reference for detailed information about individual Limitations.