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