userHasRole

Checks if the current user has a particular role.

Type and Usage

Parameters

The only parameter is the name of a role.

Output

  • Returns TRUE if the current user does not have the specified role.

  • Returns FALSE if the user does not have the specified role.

Example

Evaluates whether the user has the specified role:

<$userHasRole("admin")$>