You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the way it is implemented doesn't take into account to remove unselected roles:
/** * Updates the user. * * @param id the id of the user * @param userParameter the user parameter * @return the response entity * @throws URISyntaxException the URI syntax exception */
@PutMapping("{id}")publicResponseEntity<URI>updateUser(@PathVariable("id")Stringid, @Valid @RequestBodyUserParameteruserParameter)throwsURISyntaxException{Useruser=userService.updateUser(id,userParameter.getUsername(),userParameter.getPassword(),userParameter.getTenant());userService.assignUserRolesByIds(user,userParameter.getRoles());returnResponseEntity.created(newURI(BaseEndpoint.PREFIX_ENDPOINT_SECURITY+"users/"+user.getId())).build();}
Describe the bug
In the user dialog, when trying to delete a role or more from a user, the change didn't apply.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The unselected roles should be removed from the user's roles
Desktop:
Additional context
Using dirigible 10.6.13
The text was updated successfully, but these errors were encountered: