moderation reports: pass CurrentUser to visible explicitly.

This is for consistency with how `visible` works in other models.
This commit is contained in:
evazion
2020-03-21 22:14:45 -05:00
parent 2445e8b82f
commit 94aff2c777
5 changed files with 8 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ class ModerationReport < ApplicationRecord
end
end
def self.visible(user = CurrentUser.user)
def self.visible(user)
user.is_moderator? ? all : none
end