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 Dominika Kurek

Saved on Apr 20, 2016

compared with

New Version Current

changes.mady.by.user Dominika Kurek

Saved on Apr 28, 2016

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.

 

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 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
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.