Never enqueue posts from staff

This commit is contained in:
Robin Ward 2015-06-04 11:35:36 -04:00
parent 9675b426ee
commit fb7baeb7a2
1 changed files with 2 additions and 0 deletions

View File

@ -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