Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm finding that I cannot successfully protect the username for either a particular user or a particular role. The only way I'm able to prevent a user from editing their username is by disabling the option to "change own username" in the core permissions (screenshot of permission attached), which actually removes the form input altogether. I'm assuming this isn't normal, but I'm not sure what is causing the problem.
Comment | File | Size | Author |
---|---|---|---|
Screen shot 2010-11-05 at 9.14.58 AM.png | 16.83 KB | timd.mackey |
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commenteduserprotect protections don't deal with the situation of a user editing their own fields. it does provide special role-based permissions for editing own email and password, but core already provides a role-based permission for editing own username, so it's unnecessary for userprotect to address this. what you have here is a display issue, which should be addressed in core or in a theme template.
Comment #2
timd.mackey CreditAttribution: timd.mackey commentedAha, I misunderstood what this module was intended for, this explains a lot. I was thinking that I could use it to prevent a user rom editing their own fields. Thanks for clarifying :)
Comment #3
hunmonk CreditAttribution: hunmonk commentedit can, for password and email -- core already handles username.