diff --git a/src/main/java/com/HHive/hhive/domain/hive/service/HiveService.java b/src/main/java/com/HHive/hhive/domain/hive/service/HiveService.java index 99acd06..4159b46 100644 --- a/src/main/java/com/HHive/hhive/domain/hive/service/HiveService.java +++ b/src/main/java/com/HHive/hhive/domain/hive/service/HiveService.java @@ -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(); }