Organic Group "add subscribers"

smilodon - May 9, 2006 - 14:17

The group owner can "add subscribers".
Ok this is nice, but i really dont want group owners to be able to add every damn user to its gorup. I want it to be so, that only users themselves must subscribe and the group manager can only decide if he lets them in or not.
Is there any fix for my problem ? I didnt find anything on og setting pages.

I know a module with what i culd block the URLs, but it's not nice to do it that way.
http://www. .net/portaal7/?q=og/users/1/add
http://www. .net/portaal7/?q=og/users/2/add
http://www. .net/portaal7/?q=og/users/3/add
And to only delete the button with theme hack is also not very neat... and not very secure.

no trivial fix, but not too hard to code

pwolanin - May 9, 2006 - 15:51

I've been spending time looking through the og.module code and I'm pretty confident that there is not a trivial way to do this well. The only real alternative to make a feature request and/or try to implement this yourself and post a patch. Sounds like you'd want to see a new permission for the og.module? The module whould then check whether the user has this permission before showing the "add users" tab or page. I don't think this would be very hard- look at these functions:

function og_add_users_page($gid)

function og_menu($may_cache)

function og_perm()

I cant manage making this

smilodon - May 10, 2006 - 10:59

I cant manage making this php code...
So i opened a feature request http://drupal.org/node/62791

 
 

Drupal is a registered trademark of Dries Buytaert.