Active
Project:
OG promote
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2010 at 23:15 UTC
Updated:
18 Feb 2010 at 16:57 UTC
It is possible that on account creation a user is subscribed to a group on account registration (for example if the user is using the og_reg_keys module). In this case the submission handler for the account registration form will overwrite the roles set by og_promote_og(). This patch handles this case by implementing hook_user() and checking if the user is assigned to all the roles they should be based on the groups they are members of. This also acts as a poor mans upgrade path if the module is added and configured after users are already members of a group.
| Comment | File | Size | Author |
|---|---|---|---|
| og_promote-account_registration.1.patch | 2.69 KB | evoltech |
Comments
Comment #1
timos commentedHi,
I just try the patch, but it only work 50 % in my case.
It promote the user to the role assigned to his group only when he log in for the second time, but the role is note assigned to the user on account creation.
my user settings doesn't require e-mail confirmation, but i don't think the bug is here.
Comment #2
nubeli commentedYour patch creates blank roles where user_roles.rid = 0 on some existing users who are also members of groups. I haven't figured out exactly why. Will continue to investigate.