Is (Role)

Check if a user has a specific role.


We want to show a picture of delicious bacon if the user is a bacon_enthusiast.

{{ user:is role="bacon_enthusiast" }}
    <img src="delicious-bacon.jpg" />
{{ /user:is }}

If the user isn’t assigned to the bacon_enthusiast role, the content between the tags simply won’t be rendered.

A shorthand syntax is also available, however this only allows checking against a single role:

{{ is:bacon_enthusiast }}
    <img src="delicious-bacon.jpg" />
{{ /is:bacon_enthusiast }}


We also support the inverse using {{ user:isnt }} tags.




The role(s) to check against. You may specify multiple roles by pipe separating them. eg. {{ user:is role="foo" }} or {{ user:is roles="foo|bar" }}.

Last modified on June 23, 2016