FIX: disagree flag should unhide hidden post

This commit is contained in:
Régis Hanol
2014-08-11 10:48:00 +02:00
parent f897c89d48
commit e64d3b8a42
7 changed files with 27 additions and 23 deletions

View File

@ -68,7 +68,7 @@ class Validators::PostValidator < ActiveModel::Validator
def unique_post_validator(post)
return if SiteSetting.unique_posts_mins == 0
return if post.skip_unique_check
return if post.acting_user.admin? || post.acting_user.moderator?
return if post.acting_user.staff?
# If the post is empty, default to the validates_presence_of
return if post.raw.blank?