From 64094954bc1485fe59a0c75d755111037be1a31a Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 16 Sep 2016 13:12:05 -0400 Subject: [PATCH] FIX: Broken posting --- lib/validators/post_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validators/post_validator.rb b/lib/validators/post_validator.rb index 9d73fe11198..32f6063596c 100644 --- a/lib/validators/post_validator.rb +++ b/lib/validators/post_validator.rb @@ -91,7 +91,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.staff? + return if post.acting_user.try(:staff?) # If the post is empty, default to the validates_presence_of return if post.raw.blank?