mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
A card subscription took any in-org userId, so a member could open a plan for another member and pay with that member's credits or balance. A caller who is not an org admin, SuperAdmin or service now subscribes their own account whatever userId names; the org's own account stays its admins'. EdgeAuth's strip list is authz.Headers plus authz.Retired, so X-User-IsOrgAdmin and X-Billing-Account-Id can no longer be set by a client; X-User-IsOrgAdmin is minted only from a verified token whose own org the request acts in. Every site the ecosystem rule decides has a test that fails under the old prefix rule, including red's repro tests. Co-authored-by: Hanzo Dev <[email protected]>