Module: SpreeCmCommissioner::AnonymousBookingGuard

Overview

Draft-order endpoints let a request through with no spree_current_user so guests can book — but only for products that opt into that via Product#allow_anonymous_booking. Include in any draft-order controller and call ensure_anonymous_booking_allowed!(products) before doing any writes, so a request for a login-required product fails fast with 401 (the app can then re-authenticate/open login and retry) instead of creating an order no signed-in account owns.