Versions Compared
compared with
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
ezpublish.api.role.limitation_type.function_list:
class: %ezpublish.api.role.limitation_type.blocking.class%
arguments: ['FunctionList']
tags:
- {name: ezpublish.limitationType, alias: FunctionList} |