I have the group node named chapter, and another group node named projects. I use mandatory group to ensure that when a user signs up they can have to sign up to be in a chapter. How can I restrict it so users can only join 1 chapter and not two. Is this possible ?

CommentFileSizeAuthor
#1 max_groups.patch5.07 KBjludwig

Comments

jludwig’s picture

Category: support » feature
Status: Active » Needs review
StatusFileSize
new5.07 KB

I know this is a really old support request, but as far as I know.. it's not possible right now.

Okay, here's a ridiculously quick and dirty (emphasis on the dirty) patch to limit the amount of groups a user may join. If anyone else is looking for something like this, please let me know and I'll make it a bit cleaner. For now, though, this works. Although, it the node type takes no effect.. So if you wanted someone to be able to join unlimited groups of node type Foo and only 3 groups of node type Bar, this patch is't for you. Would anyone be interested in that? It would complicate thing a bit.

For now, here's the quick patch I was talking about. Just choose the limit and you're off!

mpearrow’s picture

Assigned: Unassigned » mpearrow
Status: Needs review » Needs work

Hi Jludwig,

Since it has been a while since this issue was last updated, I wanted to check in with you to see if your code has evolved in the interim. This seems like a useful feature, but before reviewing I wanted to touch base with you.

Best,