Is user in a group set?

Permalink
Hi all,

I am wandering if there is a single command that decides if a user is in a Group Set. This would reduce the three if conditions:

if(!$u->inGroup($Administrators) && !$u->inGroup($Editors) && !$u->inGroup($Moderators))

to one!

Thanks,
Konstantinos

Nomoreglitches
 
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
There is a free addon that does something similar to this. Maybe if you look at the code, it might help?

http://www.concrete5.org/marketplace/addons/registrant-group/...