When (de-)activating a user, they loose all their roles
Summary
In the update process of a user, by default no role in the role assignment menu is selected. After clicking on "save", the user is assigned all selected roles (and only those), regardless of its prior roles. So if I update a user naïvely, e.g., to (de-)activate them, and don't even look at the role assignment before clicking on save, that user loses all their prior roles.
Expected Behavior
Roles shouldn't change when (de-)activating a user, or when changing the email or password.
Actual Behavior
You have to manually select all prior roles in order for no change to happen.
Steps to Reproduce the Problem
- Update a user that has at least one role
- (de-)activate
- save
- verify that their roles are gone
Specifications
- Version: LinkAhead 0.10.1
- Platform: any
Possible fixes
Pre-select prior roles?