Skip to content

Commit

Permalink
Surely updating a user should describe user?
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Jan 16, 2025
1 parent 686cfb5 commit 79efcb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ public UserRecord updateUser(int id, UserRecord providedUser, UriInfo ui,
log.warn("CALLED updateUser({})", providedUser.getUserName());
var adminUser = security.getUserPrincipal().getName();
providedUser.setUserId(null);
var ub = ui.getBaseUriBuilder().path(DESCRIBE_GROUP);
var ub = ui.getBaseUriBuilder().path(DESCRIBE_USER);
return userManager
.updateUser(id, providedUser, adminUser,
m -> ub.build(m.getGroupId()))
m -> ub.build(m.getUserId()))
.orElseThrow(AdminImpl::noUser).sanitise();
}

Expand Down

0 comments on commit 79efcb3

Please sign in to comment.