Closed (fixed)
Project:
Registration Role Keys
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 May 2009 at 21:04 UTC
Updated:
26 May 2009 at 14:36 UTC
I've found this:
http://drupal.org/project/user_autorole
#252459: LoginToboggan breaks user_autorole (as well as numerous other things)
#236940: Role not assigned when Login Toboggan enabled
http://drupal.org/project/autoassignrole
#317108: Auto Assign Role clobbers other set roles on insert
We should take a look at what happened and if this also affects the role key module.
Comments
Comment #1
alan d. commented1) Issue review
A code review of both modules show that these are mainly updating the {roles} table inside hook_user insert. This happens before the roles are assigned by Drupal.
Drupal updates the roles table by firstly deleting all roles and inserting the roles present in the $edit array.
Magically, if the $edit['role'] field is set & empty, all roles vanish!
Role key handles roles by updating the $edit array, bypassing this issue
2) Test
On a Drupal 5.16 site, latest rolekey, logintogan enable (with Non-authenticated role, autologin & redirect set), no issues found during registration.
Marking closed until an issue is actually detected.