diff --git a/src/main/java/cz/cvut/kbss/study/rest/OidcUserController.java b/src/main/java/cz/cvut/kbss/study/rest/OidcUserController.java index b683333e..8beb728e 100644 --- a/src/main/java/cz/cvut/kbss/study/rest/OidcUserController.java +++ b/src/main/java/cz/cvut/kbss/study/rest/OidcUserController.java @@ -66,7 +66,7 @@ public List 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.");