Skip to content

Commit

Permalink
[#33] Refactor method name OidcUserController.updateUserInstitution t…
Browse files Browse the repository at this point in the history
…o OidcUserController.updateUser
  • Loading branch information
kostobog committed Dec 13, 2023
1 parent 64cfe2c commit cc50949
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public List<User> getUsers(@RequestParam(value = "institution", required = false
@PreAuthorize("hasRole('" + SecurityConstants.ROLE_ADMIN + "') or #username == authentication.name")
@PutMapping(value = "/{username}", consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.NO_CONTENT)
public void updateUserInstitution(@PathVariable("username") String username, @RequestBody User user,
public void updateUser(@PathVariable("username") String username, @RequestBody User user,
@RequestParam(value = "email", defaultValue = "true") boolean sendEmail) {
if (!username.equals(user.getUsername())) {
throw new BadRequestException("The passed user's username is different from the specified one.");
Expand Down

0 comments on commit cc50949

Please sign in to comment.