Role of user¶
Plugin ID: eca_user_role
Available since: 1.0.0
Checks, whether a given user account has a given role.
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 User role— config key:role-
The user role to check, like editor or administrator.
When using the "Defined by token" option, make sure there is a token with this name: eca_user_role_roleType:
select· Required: no · Default: empty stringAllowed values depend on the configuration of the target site.
Value format: A user role machine name on the target site. anonymous and authenticated always exist.
Negate the condition— config key:negate-
Negates the condition. Makes TRUE to FALSE and vice versa.
Type:
checkbox· Required: no · Default:false