Needs work
Project:
OG User Roles
Version:
6.x-4.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2011 at 08:54 UTC
Updated:
5 Dec 2011 at 09:51 UTC
When a group is set to "Moderated - membership requests must be approved.", OGUR adds assigned roles to unapproved members.
The attached patch fixes this in og_user_roles_grant_roles() by JOINing the og_uid table and checking if is_active is set to 1.
| Comment | File | Size | Author |
|---|---|---|---|
| ogur_is_active.patch | 1.04 KB | mrharolda |
Comments
Comment #1
pdrake commentedThis patch worked for me - thanks.
Comment #2
sunShouldn't this be an INNER JOIN then?
Comment #3
mrharolda commented@sun: good question.
The idea was to give unapproved members no OGUR roles at all. The WHERE clause filters the inactive user anyway, so I guess it could be a LEFT JOIN too.
Haven't used OG in a while, so I can't test both queries atm...