Files
danbooru/app/policies/comment_vote_policy.rb
2020-04-03 15:43:01 -05:00

11 lines
182 B
Ruby

class CommentVotePolicy < ApplicationPolicy
def destroy?
# XXX permissions are checked in Comment#unvote!
true
end
def can_see_votes?
user.is_moderator?
end
end