Browse Source

feat: use zero? where appropriate and lint

pull/1958/head
natdeanlewissoftwire 3 years ago
parent
commit
409dadbb8b
  1. 2
      app/controllers/schemes_controller.rb

2
app/controllers/schemes_controller.rb

@ -273,7 +273,7 @@ private
required_params[:sensitive] = required_params[:sensitive].to_i if required_params[:sensitive]
if current_user.data_coordinator? && current_user.organisation.stock_owners.blank?
if current_user.data_coordinator? && current_user.organisation.stock_owners.count.zero?
required_params[:owning_organisation_id] = current_user.organisation_id
end
required_params

Loading…
Cancel
Save