From 21d59a7ecccee06115e9d4c967ac10a9b73c1721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EB=AF=B8=EB=9E=98?= Date: Fri, 27 Sep 2024 23:28:05 +0900 Subject: [PATCH] fix :: fix word comment authority conditional statement --- .../dnd/spaced/domain/comment/application/CommentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }