Download & Extend

Allow user to only join 1 group of a specific node type.

Project:Organic Groups Mandatory Group
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:mpearrow
Status:needs work

Issue Summary

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 ?

Comments

#1

Category:support request» feature request
Status:active» needs review

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!

AttachmentSize
max_groups.patch 5.07 KB

#2

Assigned to:Anonymous» 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,

nobody click here