.. include:: ../../../../Includes.txt ======================= f:be.security.ifHasRole ======================= 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. Properties ========== .. rst-class:: dl-parameters role :sep:`|` :aspect:`Condition:` required :sep:`|` :aspect:`Type:` string :sep:`|` :aspect:`Default:` null :sep:`|` Either the (case-sensitive) user group name or (preferentially) the user group UID. Examples ======== IF->THEN->ELSE -------------- :: You have permission to edit this content. Only backend users with administration rights may edit this content. Status-dependent content ------------------------ :: Welcome, Administrator.