Message-ID: <1098271482.3714.1485854992517.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3713_559538830.1485854992517" ------=_Part_3713_559538830.1485854992517 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html BlockingLimitation

BlockingLimitation

=20
=20
=20
=20

A generic Limitation type to use when no other Limitation has been imple= mented. Without any limitation assigned, a LimitationNotFoundException is t= hrown.

It is called "blocking" because it will always tell the permissions syst= em that the User does not have access to any Policy it is assigned to, maki= ng the permissions system move on to the next Policy.

 

Id= entifier n/a (configured for ezjscore<= /code> limitation FunctionList out of the box)
Va= lue Class eZ\Publish\API\Repository\Values\User\Limi= tation\BlockingLimitation
Type Class eZ\Publish\Core\Limitation\B= lockingLimitationType
Criterion used MatchNone
Role Limitation no
Possible values
Value UI value Description
<mixed> <mixed>

This is a generic Limitation which does not v= alidate 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 Limitatio= ns to use it, out of the box FunctionList uses it in the following way:

=20
    # FunctionList is a ezjscore limitations, it only applies to ez=
jscore policies not used by
    # API/platform stack so configuring to use "blocking" limitation to avo=
id LimitationNotFoundException
    ezpublish.api.role.limitation_type.function_list:
        class: %ezpublish.api.role.limitation_type.blocking.class%
        arguments: ['FunctionList']
        tags:
            - {name: ezpublish.limitationType, alias: FunctionList}
= =20
=20
=20
=20
=20

 

=20
=20
=20
------=_Part_3713_559538830.1485854992517--