fixes #1230
This commit is contained in:
@@ -27,7 +27,7 @@ class CommentVote < ActiveRecord::Base
|
|||||||
|
|
||||||
def validate_user_can_vote
|
def validate_user_can_vote
|
||||||
if !user.can_comment_vote?
|
if !user.can_comment_vote?
|
||||||
errors.add :base, "You cannot vote on comments"
|
errors.add :base, "You cannot vote on more than 10 comments per hour"
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user