Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: pdrake commentedThis patch worked for me - thanks.
Comment #2
sunShouldn't this be an INNER JOIN then?
Comment #3
MrHaroldA CreditAttribution: 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...