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.

CommentFileSizeAuthor
patch.txt2.37 KBvidorado
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hunmonk’s picture

Category: bug » support
Priority: Critical » Normal
Status: Patch (to be ported) » Closed (works as designed)
  1. The default values for administrator bypass are supposed to be the same as the protection defaults -- there is no reason why this would make the module not work. If you don't like the default values, simply set whatever values you like. I will not accept this portion of the patch
  2. The other two portions of the patch are separate feature requests, and not related to the bug report you are filing. If you want these feature requests to be considered for the module, you need to
  • create a separate patch for each feature, and file each patch with its own issue as a feature request
  • include patches for both the 6.x and 7.x versions.
fadgadget’s picture

i 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.

Gik000’s picture

Issue tags: +Admin role, +user protect

It doesn't work for me to.

I have 3 user class (role):

  • administrators
  • supervisors
  • registered

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.

DarkteK’s picture

Issue summary: View changes

How 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