mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Update orders swagger spec and fix api_key access to orders endpoint
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user