lib/eco/api/usecases/default_cases/update_case.rb in eco-helpers-1.3.17 vs lib/eco/api/usecases/default_cases/update_case.rb in eco-helpers-1.3.18

- old
+ new

@@ -10,10 +10,14 @@ supers = session.job_group("post").new("supers", usecase: usecase, type: :update, sets: :core) strict_search = session.config.people.strict_search? && (!options[:search]&.key?(:strict) || options.dig(:search, :strict)) pgs = session.policy_groups + if session.config.people.default_usergroup? + def_id = pgs.to_id(session.config.people.default_usergroup) + end + entries.each.with_index do |entry, i| if person = people.find(entry, strict: strict_search) unless options.dig(:exclude, :core) ini_tags = person.filter_tags || [] @@ -35,9 +39,10 @@ end entry.set_details(person) unless options.dig(:exclude, :details) unless options.dig(:exclude, :account) + add_account = !person.account ini_pg_ids = person.account&.policy_group_ids || [] account_excluded = [] account_excluded.push("policy_group_ids") if options.dig(:exclude, :policy_groups)