fixes #1975
This commit is contained in:
@@ -35,8 +35,8 @@ class CommentVote < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def validate_comment_can_be_down_voted
|
def validate_comment_can_be_down_voted
|
||||||
if is_negative? && comment.creator.is_janitor?
|
if is_negative? && comment.creator.is_admin?
|
||||||
errors.add :base, "You cannot downvote a janitor comment"
|
errors.add :base, "You cannot downvote an admin comment"
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user