From 18b537026eb83db19fa8896ed7b1fe9b8f40625a Mon Sep 17 00:00:00 2001 From: SamuelMartini Date: Wed, 4 Mar 2020 15:46:09 +0100 Subject: [PATCH] Remove double authorization Authorization already happen on the first line after the method definition --- api/app/controllers/spree/api/checkouts_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/api/app/controllers/spree/api/checkouts_controller.rb b/api/app/controllers/spree/api/checkouts_controller.rb index b315fcd866e..51b51798464 100644 --- a/api/app/controllers/spree/api/checkouts_controller.rb +++ b/api/app/controllers/spree/api/checkouts_controller.rb @@ -20,7 +20,6 @@ def next respond_with(@order, default_template: 'spree/api/orders/expected_total_mismatch', status: 400) return end - authorize! :update, @order, order_token @order.next! respond_with(@order, default_template: 'spree/api/orders/show', status: 200) end