Browse Source

feat: put merge orgs behaviour behind feature flag

pull/1830/head
natdeanlewissoftwire 3 years ago
parent
commit
98cf37ad4e
  1. 8
      app/models/form/sales/questions/owning_organisation_id.rb

8
app/models/form/sales/questions/owning_organisation_id.rb

@ -37,14 +37,6 @@ class Form::Sales::Questions::OwningOrganisationId < ::Form::Question
hsh
end
end
user_answer_options = if user.support?
Organisation.where(holds_own_stock: true)
else
user.organisation.stock_owners + user.organisation.absorbed_organisations.where(holds_own_stock: true)
end.pluck(:id, :name).to_h
answer_opts.merge(user_answer_options)
end
def displayed_answer_options(log, user = nil)

Loading…
Cancel
Save