diff --git a/internal/controller/comment_controller.go b/internal/controller/comment_controller.go index 27cbe06c..b7a161e1 100644 --- a/internal/controller/comment_controller.go +++ b/internal/controller/comment_controller.go @@ -110,7 +110,7 @@ func (cc *CommentController) UpdateComment(ctx *gin.Context) { } req.UserID = middleware.GetLoginUserIDFromContext(ctx) - can, err := cc.rankService.CheckOperationPermission(ctx, req.UserID, rank.CommentEditRank, req.UserID) + can, err := cc.rankService.CheckOperationPermission(ctx, req.UserID, rank.CommentEditRank, req.CommentID) if err != nil { handler.HandleResponse(ctx, err, nil) return