mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Avoid needlessly fetching the current user records (for authentication and API key checks)
These endpoints are absolutely public, and don't need the current user at any point.
This commit is contained in:
@@ -4,6 +4,7 @@ module Api
|
||||
respond_to :json
|
||||
|
||||
skip_authorization_check
|
||||
skip_before_filter :authenticate_user, :ensure_api_key, only: [:taxons, :properties]
|
||||
|
||||
def products
|
||||
render_no_products unless order_cycle.open?
|
||||
|
||||
Reference in New Issue
Block a user