Allow downvoting admin comments.

This commit is contained in:
evazion
2016-12-26 22:48:13 -06:00
parent 91e368f08a
commit 82e93b3c12

View File

@@ -39,9 +39,6 @@ class CommentVote < ActiveRecord::Base
if is_positive? && comment.creator == CurrentUser.user
errors.add :base, "You cannot upvote your own comments"
false
elsif is_negative? && comment.creator.is_admin?
errors.add :base, "You cannot downvote an admin comment"
false
else
true
end