diff --git a/api/app/controllers/spree/api/shipments_controller.rb b/api/app/controllers/spree/api/shipments_controller.rb index 335e2272c57..e8ece587a1e 100644 --- a/api/app/controllers/spree/api/shipments_controller.rb +++ b/api/app/controllers/spree/api/shipments_controller.rb @@ -131,11 +131,8 @@ def load_transfer_params end def find_order_on_create - # TODO: Can remove conditional here once deprecated #find_order is removed. - unless @order.present? - @order = Spree::Order.find_by!(number: params[:shipment][:order_id]) - authorize! :read, @order - end + @order = Spree::Order.find_by!(number: params[:shipment][:order_id]) + authorize! :read, @order end def find_shipment