comments: link votes page in subnav for mods.

This commit is contained in:
evazion
2020-04-03 15:43:01 -05:00
parent dc0442bd17
commit 3e792019e5
3 changed files with 9 additions and 0 deletions

View File

@@ -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