Protect Password can't work
Osiride - October 20, 2008 - 14:42
| Project: | User Protect |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Installed the 6x11 version on drupal 65
configured the module to protect the possibility of change password to anyone.
the users can still modify password

#1
by default users are able to change their own password -- this makes common sense.
have you played with the 'change own password' permission for the roles you're trying to prevent password editing for?
#2
Hello,
Nice module but I have a problem it does not works for users which have a role.
I tried to create a new user after the activation of the module but it does not work for users which have a role.
However I have well unchecked all permissions on userprotect module.
As my user is an authenticated user and has a role, is there a conflict between this 2 categories?
I wish authenticated users can change their password but users which have a certain role cannot change their password.
That's why for authenticated user I have checked all permissions on userprotect module and unchecked all permissions on userprotect module for users which as another role.
To it works for users with role i'm oblige to unchecked all permission for authenticated users, so it does not work for users without roles...
Sorry for my broken english!
Best regards
#3
@selinav: you're doing it wrong. ;)
quick explanation: in drupal, role permissions are done via OR logic, meaning if a user has two roles, then if either role has a certain permission, the user gets it. since all registered users are granted the authenticated user role by default (this is hard-coded in core), any permission you assign to the auth role will therefore be granted to all registered users of the site.
you either need to rethink the way you're using roles, or try to make something like http://drupal.org/project/role_weights work.
#4
Thanks hunmonk,
After the corrections it well work.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.