diff --git a/src/main/java/com/capstone/BnagFer/domain/myteam/service/TeamInviteService.java b/src/main/java/com/capstone/BnagFer/domain/myteam/service/TeamInviteService.java index 741aabf..ae339dd 100644 --- a/src/main/java/com/capstone/BnagFer/domain/myteam/service/TeamInviteService.java +++ b/src/main/java/com/capstone/BnagFer/domain/myteam/service/TeamInviteService.java @@ -64,7 +64,7 @@ public void kickOutMembers(Long memberId, Long teamId, User user) { // 프로필 존재 확인 accountsCommonService.checkUserProfile(teamMember.getUser()); //방장에게만 강퇴 권한 - if (team.getLeader().getId().equals(user.getId())) + if (!team.getLeader().getId().equals(user.getId())) throw new TeamMemberExceptionHandler(ErrorCode.NO_AUTHORIZATION); //방장이 자기 자신을 강퇴 못하게 해주는 예외처리