From 82e93b3c1235a8e6f132b1c98d10d552c8c08788 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 26 Dec 2016 22:48:13 -0600 Subject: [PATCH] Allow downvoting admin comments. --- app/models/comment_vote.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/comment_vote.rb b/app/models/comment_vote.rb index 88ec2d084..accf9bc92 100644 --- a/app/models/comment_vote.rb +++ b/app/models/comment_vote.rb @@ -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