remove comment downvoting
This commit is contained in:
parent
cf6ac62827
commit
ef0601f65b
|
@ -174,12 +174,8 @@ class User < ActiveRecord::Base
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
elsif obj.is_a?(Comment)
|
elsif obj.is_a?(Comment)
|
||||||
if obj.is_downvotable?
|
# XXX
|
||||||
return true
|
return false
|
||||||
elsif obj.current_vote.try(:vote).to_i == -1
|
|
||||||
# user can unvote
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue