Never enqueue posts from staff
This commit is contained in:
parent
9675b426ee
commit
fb7baeb7a2
|
@ -29,6 +29,8 @@ class NewPostManager
|
|||
end
|
||||
|
||||
def self.user_needs_approval?(user)
|
||||
return false if user.staff?
|
||||
|
||||
(user.post_count < SiteSetting.approve_post_count) ||
|
||||
(user.trust_level < SiteSetting.approve_unless_trust_level.to_i)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue