mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: poll new_post_manager spec
This commit is contained in:
@ -309,8 +309,6 @@ after_initialize do
|
||||
end
|
||||
|
||||
validate(:post, :validate_polls) do |force = nil|
|
||||
return if !SiteSetting.poll_enabled? && (self.user && !self.user.staff?)
|
||||
|
||||
# only care when raw has changed!
|
||||
return unless self.raw_changed? || force
|
||||
|
||||
|
Reference in New Issue
Block a user