Package

ViewHelpers

ViewHelper Documentation

v:security.allow

Security: Allow

Allows access to the child content based on given arguments. The ViewHelper is a condition based ViewHelper which means it supports the f:then and f:else child nodes - you can use this behaviour to invert the access (i.e. use f:else in a check if a frontend user is logged in, if you want to hide content from authenticated users):

<v:security.allow anyFrontendUser="TRUE">
    <f:then><!-- protected information displayed --></f:then>
    <f:else><!-- link to login form displayed --></f:else>
</v:security.allow>

Is the mirror opposite of v:security.deny.

Arguments

anyFrontendUser boolean

If TRUE, allows any FrontendUser unless other arguments disallows each specific FrontendUser

anyFrontendUserGroup boolean

If TRUE, allows any FrontendUserGroup unless other arguments disallows each specific FrontendUser

frontendUser anySimpleType

The FrontendUser to allow/deny

frontendUsers anySimpleType

The FrontendUsers ObjectStorage to allow/deny

frontendUserGroup anySimpleType

The FrontendUserGroup to allow/deny

frontendUserGroups anySimpleType

The FrontendUserGroups ObjectStorage to allow/deny

anyBackendUser boolean

If TRUE, allows any backend user unless other arguments disallows each specific backend user

backendUser integer

The uid of a backend user to allow/deny

backendUsers anySimpleType

The backend users list to allow/deny. If string, CSV of uids assumed, if array, array of uids assumed

backendUserGroup integer

The uid of the backend user group to allow/deny

backendUserGroups anySimpleType

The backend user groups list to allow/deny. If string, CSV of uids is assumed, if array, array of uids is assumed

admin boolean

If TRUE, a backend user which is also an admin is required

evaluationType string

Specify AND or OR (case sensitive) to determine how arguments must be processed. Default is AND, requiring all arguments to be satisfied if used

ViewHelper Resources

Schema Resources