Closed (works as designed)
Project:
User Read-Only
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 May 2009 at 22:01 UTC
Updated:
10 May 2011 at 18:56 UTC
I tried denying changes to all but the password field, but when I make a password change drupal throws out a message...
* An illegal choice has been detected. Please contact the site administrator.
* Detected malicious attempt to alter protected user fields.
Any idea why?
Comments
Comment #1
deekayen commentedBoth those errors come from core Drupal.
The alter protected fields happens when:
Comment #2
kruser commentedThanks for your reply.
It was definitely a combination of setting in the UserReadonly module triggering the error. After tampering with it I stumbled upon a combination of settings that worked...
To let the user to only edit the password:
1. admin/user/user_readonly, Default: allowed all and check all roles
2. admin/user/user_readonly, Account information » E-mail address: Deny changes to all but the administrator
3. admin/user/permissions, be sure 'administer permissions' and 'change own username' are unchecked for all but the administrator.
And that allowed authenticated users to only change passwords with no 'An illegal choice has been detected.' error.
Thanks.
Comment #3
kruser commentedIn hind site, it seems like disallowing all by default, then enabling the individual fields is what triggers the error. When reversing the scenario, allowing all the fields by default, then disabling the individual fields that you don't want, works okay.
Comment #4
Bastlynn commentedSince it looks like the problem is resolved and was related to configurations, I'm closing this ticket. If you *do* need this issue addressed further - please open another ticket. Keep in mind, we are generally trying to take any changes on the 7.x branch, not the 6.x branch.