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