Merge pull request #5578 from mbudm/issue/3770-manual-update

Update orders swagger spec and fix api_key access to orders endpoint
This commit is contained in:
Luis Ramos
2020-07-06 20:32:25 +01:00
committed by GitHub
8 changed files with 409 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),