:navigation-title: be.security.ifHasRole .. include:: /Includes.rst.txt .. _typo3-fluid-be-security-ifhasrole: ============================================================ Be.security.ifHasRole ViewHelper `` ============================================================ .. typo3:viewhelper:: be.security.ifHasRole :source: ../../../Global.json :display: tags,description,gitHubLink,arguments .. _typo3-fluid-be-security-ifhasrole-example: Examples ======== Basic usage:: This is being shown in case the current BE user belongs to a BE usergroup (aka role) titled "Administrator" (case sensitive) Everything inside the :html:`` tag is being displayed if the logged in backend user belongs to the specified backend group. Using the usergroup uid as role identifier:: This is being shown in case the current BE user belongs to a BE usergroup (aka role) with the uid "1" Everything inside the :html:`` tag is being displayed if the logged in backend user belongs to the specified backend group. IfRole / then / else:: This is being shown in case you have the role. This is being displayed in case you do not have the role. Everything inside the :html:`` tag is displayed if the logged in backend user belongs to the specified backend group. Otherwise, everything inside the :html:`` tag is displayed.