Update orders swagger spec and fix api_key access to orders endpoint

This commit is contained in:
Steve Roberts
2020-06-10 16:29:07 +10:00
parent 9e730e6445
commit 8b79d41b81
2 changed files with 53 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module Api
def index
authorize! :admin, Spree::Order
search_results = SearchOrders.new(params, spree_current_user)
search_results = SearchOrders.new(params, current_api_user)
render json: {
orders: serialized_orders(search_results.orders),