[TYPO3-dev] Check if FE-User is member of a fe_user_group

Stefan Geith typo3dev at geithware.de
Thu Feb 9 15:49:33 CET 2006


Andreas Förthner schrieb:
> Hi list,
> 
> I am programming a FE-Plugin, that will show some data to the logged in 
> User. The output should be different to different fe_user_groups. The 
> ids of the groups are provided by TS.
> Now what I need is a function that gives me all ids of the users that 
> belong to a specific fe_user_group. Is something like that existant? I 
> couldn't find an api for fe_authentication, perhaps I was just blind.
> 
> If there is no api, how do I have to process the blob field in the 
> fe_users table, to find out if this user belongs to my group... or is 
> there a sql function? I don't think so...

Maybe this helps:
    $GLOBALS['TSFE']->fe_user->groupData['uid']
is an array with all groupd-ids of the logged in user.

-

Stefan





More information about the TYPO3-dev mailing list