fsanyoto commited on
Commit
242879b
·
verified ·
1 Parent(s): 1585551

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
Files changed (4) hide show
  1. RELEASES.json +1 -1
  2. VERSION +1 -1
  3. api/routes_customers.py +8 -0
  4. api/routes_products.py +8 -0
RELEASES.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "current": "db43911",
3
  "releases": [
4
  {
5
  "version": "v53",
 
1
  {
2
+ "current": "fb4bcf4",
3
  "releases": [
4
  {
5
  "version": "v53",
VERSION CHANGED
@@ -1 +1 @@
1
- db43911
 
1
+ fb4bcf4
api/routes_customers.py CHANGED
@@ -75,6 +75,14 @@ def _pool_for(rt, team_id, agent):
75
  goes live — it serves the in-process copy at any age, else the persisted pause-time
76
  snapshot (restart-safe), else answers 503. Never a WIDER scope's snapshot: handing a
77
  scoped user the consolidated rows would widen their book, which is worse than an error."""
 
 
 
 
 
 
 
 
78
  import modules.customer_data as cl
79
  import routes_keychain
80
 
 
75
  goes live — it serves the in-process copy at any age, else the persisted pause-time
76
  snapshot (restart-safe), else answers 503. Never a WIDER scope's snapshot: handing a
77
  scoped user the consolidated rows would widen their book, which is worse than an error."""
78
+ # `modules.customer_data.pool` is Royal Imports' Odoo-specific reconciler today. It has
79
+ # no request-tenant parameter, so calling it for another tenant would return Royal rows
80
+ # through that tenant's otherwise-correct session and store handles. Until a connector-
81
+ # backed customer-pool implementation exists, a non-Royal tenant gets the honest empty
82
+ # capability result; empty is safe, another tenant's customer book is not.
83
+ if rt.key != "royal-imports":
84
+ return []
85
+
86
  import modules.customer_data as cl
87
  import routes_keychain
88
 
api/routes_products.py CHANGED
@@ -42,6 +42,14 @@ def _pool_for(rt, team_id):
42
  pool: only a scope's FIRST-ever build blocks, and the cache key is the SCOPE, never the user
43
  — the customer route learned that the hard way (a per-user payload cached on a scope key
44
  served one user's private columns to another)."""
 
 
 
 
 
 
 
 
45
  import modules.product_data as pd
46
 
47
  # ⚠ Signature is (cache, key, ttl, build) — the wave-15 version passed `ttl=` as a keyword
 
42
  pool: only a scope's FIRST-ever build blocks, and the cache key is the SCOPE, never the user
43
  — the customer route learned that the hard way (a per-user payload cached on a scope key
44
  served one user's private columns to another)."""
45
+ # This reconciler is Royal Imports' Odoo catalogue implementation and does not accept a
46
+ # TenantRuntime. Never let a correctly-authenticated non-Royal session cross that module
47
+ # boundary: an empty catalogue is an honest unsupported capability, while Royal SKU data is
48
+ # a tenant-isolation failure. A future connector-backed product builder replaces this
49
+ # fail-closed seam rather than widening it by accident.
50
+ if rt.key != "royal-imports":
51
+ return []
52
+
53
  import modules.product_data as pd
54
 
55
  # ⚠ Signature is (cache, key, ttl, build) — the wave-15 version passed `ttl=` as a keyword