Use frontend user groups in fluid

Frontend

Often we only want to display content for certain frontend user groups, for example, information for editors. Fluid already has a ready-made view helper for this purpose.

 

<f:security.ifHasRole role="Administrator">
 <p>Information for admins: {adminInformation}</p>
</f:security.ifHasRole>

 

Tested with TYPO3 6.2.14, 7.4.0 & 8.7.4