[TYPO3-mvc] Access control (very simple) example

Nathan Lenz typo3 at k9tfk.com
Thu Jan 7 22:32:48 CET 2010


I have a part of a fluid template that I only want to show to people who
are logged in and in a special group.

Pseudo code:

<f:if condition="user in settings.mySpecialGroup">
    Show something special here.
<f:/if>

In PHP I would do something like this:

in_array($groupUid,$GLOBALS['TSFE']->fe_user->groupData['uid'])

Is there a way to do that within the condition of an <f:if> tag?  I
tried various versions but couldn't get it to work.

Thanks,
--Nathan Lenz






More information about the TYPO3-project-typo3v4mvc mailing list