Permalink
Browse files

remove comment downvoting

  • Loading branch information...
jcs committed Oct 30, 2016
1 parent cf6ac62 commit ef0601f65b9c8e904ce40ce8568e4af593b03c0a
Showing with 2 additions and 6 deletions.
  1. +2 −6 app/models/user.rb
View
@@ -174,12 +174,8 @@ def can_downvote?(obj)
return true
end
elsif obj.is_a?(Comment)
if obj.is_downvotable?
return true
elsif obj.current_vote.try(:vote).to_i == -1
# user can unvote
return true
end
# XXX
return false
end
false

0 comments on commit ef0601f

Please sign in to comment.