eZ Documentation Center

This is outdated documentation made for eZ Publish Platform 5.2. 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

A limitation to specify that only owner of content gets a certain access right.

Value ClasseZ\Publish\API\Repository\Values\User\Limitation\OwnerLimitation
Type ClasseZ\Publish\Core\Limitation\OwnerLimitationType
Criterion usedeZ\Publish\API\Repository\Values\Content\Query\Criterion\UserMetadata( UserMetadata::OWNER )
Role Limitationno
Possible values
ValueUI valueDescription

Only user which is owner gets access (see "Legacy compatibility notes" #2)


Same as "self" (see "Legacy compatibility notes" #1)

Legacy compatibility notes:
  1. Owner("session") is deprecated and works exactly like "self" in Public API since it has no knowledge of user Sessions
  2. User is no longer auto assumed to be owner of himself and get access to edit him/herself when Owner limitation is used in Public API*

* Workaround for Owner limitation on user object:

To make sure user gets access to himself when using Owner limitation across 4.x and 5.x, the solution is to change the user to be owner of himself.
This is accomplished using a privileged user to do the following API calls:

  • No labels