Open platform to collect and prioritize feedback
Fixed requires moderation check
Matt Roberts676481ffaa01
diff --git a/app/services/sqlstore/postgres/comment.go b/app/services/sqlstore/postgres/comment.goindex a6a1176e4..ee61234c9 100644--- a/app/services/sqlstore/postgres/comment.go+++ b/app/services/sqlstore/postgres/comment.go@@ -16,7 +16,7 @@ import (func addNewComment(ctx context.Context, c *cmd.AddNewComment) error {return using(ctx, func(trx *dbx.Trx, tenant *entity.Tenant, user *entity.User) error {- isApproved := !tenant.IsModerationEnabled || user.IsCollaborator()+ isApproved := !tenant.IsModerationEnabled || !user.RequiresModeration()var id intif err := trx.Get(&id, `INSERT INTO comments (tenant_id, post_id, content, user_id, created_at, is_approved)