Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Record the vendor-role direction in the RBAC plan
Damian Legawiec1e29953c63a6
diff --git a/docs/plans/6.0-admin-rbac.md b/docs/plans/6.0-admin-rbac.mdindex 2ce55b9d88..53cd7680c9 100644--- a/docs/plans/6.0-admin-rbac.md+++ b/docs/plans/6.0-admin-rbac.md@@ -462,16 +462,28 @@ all resolved 2026-08-07 and live in Key Decisions. Genuinely deferred:SaaS multi-tenant demand where tenant A's custom roles must be invisible totenant B.- **Vendor-scoped assignments** — the schema already carries them: a vendor- staffer is a `RoleUser` with `resource: vendor` (whose `store_id` binds it to- the vendor's store), invitations accept the same polymorphic resource, and- the roles + catalog keys are the same rows and vocabulary (a vendor "Catalog- manager" holds `write_products`). What the marketplace plan must add when- vendors ship, per the Axis A/B split: the vendor *boundary* is tenancy, not- new keys — vendor-panel endpoints scope-fetch through `current_vendor`- exactly as admin endpoints scope through `current_store`, and the store-admin- ability must activate keys only from store-resourced assignments (today- `staff_roles` matches on `store_id`, which would also pick up- vendor-resourced rows and grant a vendor staffer store-wide capability).+ staffer is a `RoleUser` with `resource: vendor` (whose store binding derives+ from the vendor's store), invitations accept the same polymorphic resource,+ and the catalog keys are the same vocabulary (a vendor "Catalog manager"+ holds `write_products`). Direction settled 2026-08-08 for the marketplace+ plan to inherit:+ - **Same machinery, separate pools.** Roles gain an *audience* (staff |+ vendor). The operator defines vendor capability tiers in the same editor;+ vendors assign their people to those tiers but do not define roles+ (role names are globally unique — vendor-created roles would collide;+ per-vendor-owned pools are a later need, like per-store definitions).+ - **A vendor-grantable catalog subset.** Vendor roles draw only from+ vendor-safe resources (products, orders, fulfillments, stock, analytics —+ never `settings`, `staff`, `api_keys`); catalog resources carry the+ marker, the editor filters the grid by audience, and assignment /+ invitation guards pair audience with resource type.+ - **The vendor boundary is tenancy, not new keys** (Axis A/B): vendor-panel+ endpoints scope-fetch through `current_vendor` exactly as admin endpoints+ scope through `current_store`, and the store-admin ability must activate+ keys only from store-resourced assignments (today `staff_roles` matches on+ `store_id`, which would also pick up vendor-resourced rows and grant a+ vendor staffer store-wide capability).+Surface and enforcement ship with `6.0-multi-vendor-marketplace.md`, nothere.- **Audit trail for role/permission changes** — rides a future admin audit-log