lib/eco/api/usecases/default_cases/update_case.rb in eco-helpers-0.7.1 vs lib/eco/api/usecases/default_cases/update_case.rb in eco-helpers-0.7.2

- old
+ new

@@ -16,10 +16,10 @@ #end @cases.define("update", type: :sync) do |entries, people, session, options| update = session.job_group("main").new("update", type: :update, sets: [:core, :details, :account]) - strict_search = session.config.people.strict_search? || options.dig(:search, :strict) + strict_search = session.config.people.strict_search? && (!options[:search]&.key?(:strict) || options.dig(:search, :strict)) pgs = session.policy_groups entries.each.with_index do |entry, i| if person = people.find(entry, strict: strict_search) core_excluded = ["supervisor_id"]