Raskolnikov
Raskolnikov

Reputation: 395

How to disable change password option for other users?

I want to prevent the user from changing other users' passwords, so he can only change his own password

Upvotes: 0

Views: 923

Answers (1)

Bhavesh Odedra
Bhavesh Odedra

Reputation: 11143

You need to do it in following way:

  • Create a security group. With this group of users, allow them to change passwords.
  • There are two ways to change passwords. One from the "Change Password" button in user form view and from the Action > Change Password. Both options are available from the Users form/tree view.
  • Inherit user form view and wizard action, provide groups which we have created in the first step.
  • Upgrade your module. Login with and without a special security group and you will notice that Change Password is only visible for special users who have security groups turned on.

Upvotes: 1

Related Questions