Skip to content

Commit

Permalink
OH2-249 Fix PUT /users/settings/{id}
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Dec 1, 2023
1 parent 4b3dc27 commit 4559044
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/isf/menu/rest/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,6 @@ public ResponseEntity<UserSettingDTO> updateUserSettings(@PathVariable(name = "i
throw new OHAPIException(new OHExceptionMessage("Not allowed."));
}
if (userSetting.get().getUser().equals(currentUser) || currentUser.equals(ADMIN)) {
if (userSettingManager.getUserSettingByUserNameConfigName(requestUserName, userSettingDTO.getConfigName()) != null) {
throw new OHAPIException(new OHExceptionMessage("A setting with that name already exists."));
}
if (userManager.getUserByName(requestUserName) == null) {
throw new OHAPIException(new OHExceptionMessage("The specified user does not exist."));
}
Expand Down

0 comments on commit 4559044

Please sign in to comment.