From 9312e0c78c8c723d115d79f6788cd3d73a125c84 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 2 Apr 2020 20:47:36 -0500 Subject: [PATCH] comment votes: let mods see comment voters. --- app/models/comment_vote.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment_vote.rb b/app/models/comment_vote.rb index d3eb2101c..0cfea7c16 100644 --- a/app/models/comment_vote.rb +++ b/app/models/comment_vote.rb @@ -9,7 +9,7 @@ class CommentVote < ApplicationRecord validates_inclusion_of :score, :in => [-1, 1], :message => "must be 1 or -1" def self.visible(user) - if user.is_admin? + if user.is_moderator? all elsif user.is_member? where(user: user)