Closed (outdated)
Project:
Role Control
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2008 at 20:54 UTC
Updated:
10 Sep 2021 at 22:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
elliot commentedHmm, I hadn't originally planned for people being able to add a role during registration (I believe there are other modules that do this) and had made the obviously false assumption that if you allow someone to add a role during registration that they should have the power to maintain that role. If someone would like to figure out a fix for this I'd be more than happy to review it. I'm swamped with other work at the moment, but will look at it when I get a chance.
Comment #2
smokrisOn a site I'm running, I give users the ability to set a role during registration *and* when updating their account settings.
If the user edits the main account settings --- "/user/x/edit" --- and saves, the selected role is properly preserved.
If the user edits their profile.module profile --- "/user/x/edit/profile" --- and saves, the role_control checkbox is preserved, but the actual role is cleared.
I've attached a patch which solves this problem on my site --- if the role_control checkbox doesn't appear on the submitted form, it takes no action; if it does, it either adds or removes the role as usual.
Comment #3
elliot commentedThanks, I'm integrating this fix into 5.x-1.x-dev now.
-Elliot
Comment #4
smokrisThe same problem occurs in 6.x-1.x. Here's the same patch, updated fox 6.x-1.x.
Comment #5
avpadernoI am closing this issue, as it has been created for a release that is now not supported.