mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
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
Block a user