Skip to the content
Documentation

BlockingLimitation: comparison of v.1 vs v.2

No ratings yet

Versions Compared

Old Version 1

changes.mady.by.user André Rømcke

Saved on Jun 30, 2014

compared with

New Version Current

changes.mady.by.user Dominika Kurek

Saved on Jan 29, 2016

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.

 

Identifier n/a (configured for ezjscore limitation FunctionList out of the box)
Value Class eZ\Publish\API\Repository\Values\User\Limitation\BlockingLimitation
Type Class eZ\Publish\Core\Limitation\BlockingLimitationType
Criterion used MatchNone
Role Limitation no
Possible values
Value UI value Description
<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
exponential.api.role.limitation_type.function_list:
    class: %exponential.api.role.limitation_type.blocking.class%
    arguments: ['FunctionList']
    tags:
        - {name: exponential.limitationType, alias: FunctionList}

Comments

Add a comment

Comments are read by a moderator before they appear.