Skip to content

Commit

Permalink
Merge pull request #171 from dnd-side-project/hotfix/#170
Browse files Browse the repository at this point in the history
Fix word comment authority conditional statement
  • Loading branch information
miraexhoi authored Sep 27, 2024
2 parents 87d1c5f + 21d59a7 commit ade1796
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ade1796

Please sign in to comment.