This ViewHelper checks to see whether a logged-in backend user has been assigned the indicated role, through use of a user group. The general use is the same as with the f:if ViewHelper: if the check is true, then the code within the subsidiary f:then ViewHelper will be parsed. If not, then the content of the optional f:else ViewHelper will be parsed.



| Condition: required | Type: string | Default: null |

Either the (case-sensitive) user group name or (preferentially) the user group UID.



<f:be.security.ifHasRole role="Administrator">
      You have permission to edit this content.
      Only backend users with administration rights
      may edit this content.

Status-dependent content

<f:be.security.ifHasRole role="2">
   Welcome, Administrator.