Skip to content

Commit

Permalink
Remove double authorization
Browse files Browse the repository at this point in the history
Authorization already happen on the first line after the method definition
  • Loading branch information
SamuelMartini authored and DanielePalombo committed Jul 10, 2020
1 parent 496e22d commit 18b5370
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/app/controllers/spree/api/checkouts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18b5370

Please sign in to comment.