JMIX - Allow users to change their passwords

Hi @tomas.klems

You can do it manually.
Provided that you have the following menu item definition:

<item id="changePassword" bean="changeUserPasswordMenu" beanMethod="showChangePwdDialog"
      caption="Change password"/>

you should define the following role policies:

@ResourceRole(name = "UsersRole", code = "users-role")
public interface UsersRole {

    @MenuPolicy(menuIds = {"...", "changePassword"})
    @ScreenPolicy(screenIds = {"...", "ChangePasswordDialog"})
    void screens();
}

We have an issue for improving role designer: https://youtrack.jmix.io/issue/JST-1921/Add-the-ability-to-allow-access-to-a-bean-menu-item-for-a-role, will implement it in a future release.

Regards,
Konstantin