Skip to content

Commit

Permalink
Update UsersApi to remove invalid user group assignment in the user u…
Browse files Browse the repository at this point in the history
…pdate endpoint
  • Loading branch information
josegar74 committed Nov 15, 2024
1 parent 3d0b2b2 commit 64ff8f5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,7 @@ public ResponseEntity<String> updateUser(
if (securityProviderConfiguration == null || securityProviderConfiguration.isUserGroupUpdateEnabled()) {
setUserGroups(user, groups);
}

user = userRepository.save(user);
setUserGroups(user, groups);


List<UserGroup> userGroups = userGroupRepository.findAll(UserGroupSpecs
.hasUserId(user.getId()));

Expand Down

0 comments on commit 64ff8f5

Please sign in to comment.