Hello,
I've created a small Organic Groups helper module for a client and am in the process of contributing it back to the Drupal community. While I wait for my CVS account to be approved, I thought I'd post the module here in hopes of getting some feedback.
The modules is called "OG joinrole" and it simply adds a "join organic groups" permission to the Organic Groups module. A use case for this would be if you have a site where only members of a certain role are allowed to join an organic group. In my client's case, only paid members of the site are allowed to join groups.
The module is written in an all-or-nothing sort of way - either certain roles can join any and all groups or they can join no groups. It will not work on a per-group basis.
In addition to granting/denying permission to join a group, the module also modifies any text and/or links to join a group unless the user has the proper role. For example, the module removes any "og/subscribe" links on the page and replaces them with "nicer" text that you define in the admin settings.
The module was written for Drupal 5.
The code may be downloaded here:
http://www.anelloconsulting.com/files/drupal/og_joinrole.zip
If you take the time to check it out, please let me know what you think.
Thanks,
-mike