modreports: allow users to see modreports they've submitted.

This commit is contained in:
evazion
2021-01-16 01:31:36 -06:00
parent e7cdae33b2
commit 50a75e2ec5
4 changed files with 27 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
class ModerationReportPolicy < ApplicationPolicy
def index?
user.is_moderator?
!user.is_anonymous?
end
def show?
user.is_moderator?
!user.is_anonymous?
end
def create?