Fix #4525: Show mod report notices next to reported content.
This commit is contained in:
@@ -3,6 +3,10 @@ class ModerationReportPolicy < ApplicationPolicy
|
||||
user.is_moderator?
|
||||
end
|
||||
|
||||
def show?
|
||||
user.is_moderator?
|
||||
end
|
||||
|
||||
def create?
|
||||
unbanned? && policy(record.model).reportable?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user