Module: Spree::Api::V3::StorefrontGating
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/spree/api/v3/storefront_gating.rb
Overview
Enforces channel-level storefront access gating on the Store API. The posture is resolved from the request's channel (+Spree::Channel#resolved_storefront_access+, with store fallback):
login_required→ 401 on every gated read for unauthenticated requestsprices_hidden→ price fields serialized asnullfor guests
"Guest" means no authenticated customer (publishable key or guest cart token without a customer JWT). Logged-in customers are never gated.