fix: 评论删除的条件判断

This commit is contained in:
2025-09-19 16:11:24 +08:00
parent 1c20598126
commit 10dadc0af4

View File

@ -103,7 +103,7 @@ func (cs *CommentService) DeleteComment(ctx context.Context, commentID string) e
}
}
if comment.UserID != currentUser.ID || isTargetOwner {
if comment.UserID != currentUser.ID && isTargetOwner {
return errs.ErrForbidden
}