User has permission¶
Plugin ID: eca_user_permission
Available since: 1.0.0
Checks, whether a given user account has a given permission.
Fields¶
User account— config key:account-
The ID of an account or a token with a stored account entity.
This field supports tokens.Type:
textfield· Required: no · Default: empty string Permission— config key:permission-
The permission to check, like administer node display.
When using the "Defined by token" option, make sure there is a token with this name: eca_user_permission_permissionType:
select· Required: no · Default: empty stringAllowed values depend on the configuration of the target site.
Value format: A permission machine name, for example "administer nodes". The available permissions depend on the modules installed on the target site.
Negate the condition— config key:negate-
Negates the condition. Makes TRUE to FALSE and vice versa.
Type:
checkbox· Required: no · Default:false