[TYPO3-dev] Removing fe_user from fe_groups

Steffen Kamper steffen at sk-typo3.de
Thu Oct 18 11:34:26 CEST 2007


>>
>
> I don't want to delete the user, I want to delete the group :-) So my 
> problem is how to update the user - record to remove him from the deleted 
> group.
>
> Greez
>
> Mimi

ok. So you have to loop through all fe_users are in this group (where 
FIND_IN_SET(groupid,usergroup)>0), read the usergroup, delete the id and 
write back.
This is the only way, cause the groups are stored as comma seperated list in 
the field usergroup.

vg  Steffen 






More information about the TYPO3-dev mailing list