diff --git a/src/main/java/com/dnd/spaced/domain/comment/application/CommentService.java b/src/main/java/com/dnd/spaced/domain/comment/application/CommentService.java index ab9123d..ebe5398 100644 --- a/src/main/java/com/dnd/spaced/domain/comment/application/CommentService.java +++ b/src/main/java/com/dnd/spaced/domain/comment/application/CommentService.java @@ -80,7 +80,7 @@ public void delete(DeleteCommentInfoDto dto) { Account writer = findAccount(dto.email()); Comment comment = findComment(dto.commentId()); - if (comment.isOwner(writer.getId())) { + if (!comment.isOwner(writer.getId())) { throw new ForbiddenDeleteCommentException(); }