Browse Source

CLDC-1863: orgs must own stock to show as option WIP

pull/1748/head
Aaron Spencer 3 years ago
parent
commit
61275c48f7
  1. 2
      app/models/form/lettings/questions/stock_owner.rb

2
app/models/form/lettings/questions/stock_owner.rb

@ -24,7 +24,7 @@ class Form::Lettings::Questions::StockOwner < ::Form::Question
end
stock_owners_answer_options = if user.support?
Organisation
Organisation.where(holds_own_stock: true)
else
user.organisation.stock_owners
end.pluck(:id, :name).to_h

Loading…
Cancel
Save