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.
If anybody is having the same problem, that user protections simply doesn't work, may this path will help. I discovered that the default-bypass-protections array was being created from the user-protection-defaults one and the values weren't being setted correctly.
I don't know if what i've done is correct, but anyway the module now works for me. I've added a couple of improvements too:
- new permission: change own status
- hide the status radio buttons, the same way the password textbox hides when is protected.
Comments
Comment #1
hunmonk CreditAttribution: hunmonk commentedComment #2
fadgadget CreditAttribution: fadgadget commentedi crudely got it working by unchecking all the checkboxes under "Administrator bypass defaults:" at admin/user/userprotect/protection_defaults
and then i added users at admin/user/userprotect and just checked all the boxes.
The README is confusing i think as there's so much you can do with it. Thanks hunmonk.
Comment #3
Gik000 CreditAttribution: Gik000 commentedIt doesn't work for me to.
I have 3 user class (role):
and many other users.
Maybe it doesn't work fine (read TOTALLY!)
with this module?
Admin Role - 6.x-1.3 - Automatically assign all permissions to an admin role.
I will try the patch and i'll give you a feedback.
Comment #4
DarkteK CreditAttribution: DarkteK commentedHow can you not accept the patch, there's something wrong with the module when you first install it, I went crazy applying protection to users, roles, and nothing worked.
I did go to Protection Defaults and disable everything, in that way it could work ... you have to fix this ... still thx for the module