lib/eco/api/session/batch/job.rb in eco-helpers-3.0.7 vs lib/eco/api/session/batch/job.rb in eco-helpers-3.0.8
- old
+ new
@@ -348,12 +348,15 @@
end
# Applies the changes introduced by api policies
def apply_policies(pre_queue)
people(pre_queue).tap do |entries|
- next if options.dig(:skip, :api_policies)
+ if options.dig(:skip, :api_policies)
+ policies = session.default_policies
+ else
+ policies = session.policies
+ end
- policies = session.policies
next if policies.empty?
policies.launch(
people: entries,
session: session,