mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
FIX: Broken posting
This commit is contained in:
parent
0bf7519a8a
commit
64094954bc
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Reference in a new issue