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

This commit is contained in:
evazion
2021-01-16 02:19:25 -06:00
parent e7cdae33b2
commit 50a75e2ec5
4 changed files with 27 additions and 8 deletions
+2 -2
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?