Download & Extend

Default roles not granted when joining moderated groups

Project:OG Default Roles
Version:5.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Josh Benner
Status:closed (fixed)

Issue Summary

Subscription requests must be approved when groups are moderated. When the request is approved, the user joins the moderated group but is not granted the roles checked in the OG Default Roles module admin page.

The reason is the following:
The implementation of hook_og in og_default_roles.module only check for 'user insert' and 'user delete' operations. When a request is approved, og_default_roles_og() is called with $op set to 'user update', resulting in no action.

Comments

#1

Assigned to:Anonymous» Josh Benner

Thanks for the debugging. I've corrected this in HEAD. Look for fix in 1.3 release.

#2

Status:active» fixed

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.