Skip to content

Commit

Permalink
refactor : Hive 유저 탈퇴시 호스트 는 탈퇴불가 설정 예외처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
“adashkdy9960 committed Jan 31, 2024
1 parent 2c45982 commit 19ecd2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void deleteHiveUser(User user, Long hiveId, String username) {
Hive hive = getHiveAndCheckAuth(user, hiveId);
User hiveUser = userService.findUserByUsername(username);

if (user.getId().equals(hive.getId())) {
if (user.getId().equals(hive.getCreatorId())) {
throw new HostNotResignHiveException();
}

Expand Down

0 comments on commit 19ecd2e

Please sign in to comment.