comments: fix modreport notices being visible to Members.

Fix the "This comment has been reported" notice being visible for
Members.
This commit is contained in:
evazion
2021-01-19 06:05:51 -06:00
parent 40bf74220c
commit 027359a2c1
3 changed files with 7 additions and 2 deletions

View File

@@ -24,6 +24,6 @@ class CommentComponent < ApplicationComponent
end
def has_moderation_reports?
policy(ModerationReport).show? && comment.moderation_reports.present?
policy(ModerationReport).can_see_moderation_reports? && comment.moderation_reports.present?
end
end