General

  eZ Systems Website
  Editor documentation


  Developer documentation

  Back to the top

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: layout change

A generic Limitation type to use when no other Limitation has been implemented. Without any limitation assigned, a LimitationNotFoundException is thrown.

It is called "blocking" because it will always tell the permissions system that the User does not have access to any Policy it is assigned to, making the permissions system move on to the next Policy.

 

Identifiern/a (configured for ezjscore limitation FunctionList out of the box)
Value ClasseZ\Publish\API\Repository\Values\User\Limitation\BlockingLimitation
Type ClasseZ\Publish\Core\Limitation\BlockingLimitationType
Criterion usedMatchNone
Role Limitationno
Possible values
ValueUI valueDescription
<mixed><mixed>

This is a generic Limitation which does not validate the values provided to it. Make sure to validate the values passed to this limitation in your own logic.

Configuration

As this is a generic Limitation, you can configure your custom Limitations to use it, out of the box FunctionList uses it in the following way:

Code Block
    # FunctionList is a ezjscore limitations, it only applies to ezjscore policies not used by
    # API/platform stack so configuring to use "blocking" limitation to avoid LimitationNotFoundException
    ezpublish.api.role.limitation_type.function_list:
        class: %ezpublish.api.role.limitation_type.blocking.class%
        arguments: ['FunctionList']
        tags:
            - {name: ezpublish.limitationType, alias: FunctionList}