[TYPO3-dev] Check if frontend user has a given group in extbase

Jost Baron jost.baron at gmx.de
Mon Jun 15 13:23:15 CEST 2015


Hi!

I want to check if a given frontend user has a given group. The problem
is that groups can have "subgroups" (the name is misleading), so a user
can have a group indirectly.

For example:

 Group A is subgroup of Group B.

Then a user that has Group B also has Group A, but not the other way around.

Is there some built in way to find out if a user is in a certain group,
even if not directly? $GLOBALS['TSFE']->fe_user->user does not seem to
respect this.

Regards,
Jost



More information about the TYPO3-dev mailing list