diff --git a/app/policies/comment_vote_policy.rb b/app/policies/comment_vote_policy.rb index 1769427f8..46b9bf3e7 100644 --- a/app/policies/comment_vote_policy.rb +++ b/app/policies/comment_vote_policy.rb @@ -3,4 +3,8 @@ class CommentVotePolicy < ApplicationPolicy # XXX permissions are checked in Comment#unvote! true end + + def can_see_votes? + user.is_moderator? + end end diff --git a/app/views/comment_votes/index.html.erb b/app/views/comment_votes/index.html.erb index 3a18b7707..2f0884645 100644 --- a/app/views/comment_votes/index.html.erb +++ b/app/views/comment_votes/index.html.erb @@ -1,3 +1,5 @@ +<%= render "comments/secondary_links" %> +