General

  eZ Systems Website
  Technical documentation
  Editor documentation

This Documentation contains:
 
Technical documentation:



⚠ WARNING ! This documentation is deprecated !

Please go to the current Technical Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Available on version 5.3.2 and higher

A generic limitation Limitation type for to use when no implementation other Limitation has been made of a limitation, and it needs to be configured to avoid LimitationNotFoundExceptionimplemented. Without any limitation assigned, a LimitationNotFoundException is thrown.

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

 

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 limitations Limitation which does not validate the values provided to it, make . Make sure to validate the values passed to this limitation in your own logic.

Configuration

As this is a generic limitation Limitation, you can configure your custom limitations Limitations to use it, out of the box FunctionList is using 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}