Closed (fixed)
Project:
Apply for role
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2008 at 00:29 UTC
Updated:
12 Jan 2009 at 01:10 UTC
The module should use user_save() or similar mechanism to update the user's roles. Currently it is directly manipulating the database. This means that other modules cannot act on role changes, because they never get notified. Role Change Notify for example, can't send out role change notification messages. Workflow can't take action, etc.
Attached is a patch that uses user_save() to do the change to roles both on approve and deny.
| Comment | File | Size | Author |
|---|---|---|---|
| user_save_mod.patch | 1018 bytes | rfay |
Comments
Comment #1
vm commentedsweet patch!
Comment #2
Soren Jones commentedThank you!
Applied to -dev.
S.