Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- platform/modules/product_data.py +8 -3
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": [
|
| 4 |
{
|
| 5 |
"version": "v83",
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "24cafe0535f1",
|
| 3 |
"releases": [
|
| 4 |
{
|
| 5 |
"version": "v83",
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
24cafe0535f1
|
platform/modules/product_data.py
CHANGED
|
@@ -217,9 +217,14 @@ def image_field_definition(st=None):
|
|
| 217 |
shared_overlay.put_field(TABLE_KEY, IMAGE_FIELD_KEY, merged, st=st)
|
| 218 |
try:
|
| 219 |
import core.shares as shares
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
except Exception:
|
| 224 |
pass
|
| 225 |
return merged
|
|
|
|
| 217 |
shared_overlay.put_field(TABLE_KEY, IMAGE_FIELD_KEY, merged, st=st)
|
| 218 |
try:
|
| 219 |
import core.shares as shares
|
| 220 |
+
oid = shares.field_oid('product_data', IMAGE_FIELD_KEY)
|
| 221 |
+
record = shares.grants('field', oid, st=st) or {}
|
| 222 |
+
current = [(e.get('user'), e.get('role')) for e in record.get('entries') or []]
|
| 223 |
+
# A read path must not write: rewriting identical grants on every product read made
|
| 224 |
+
# each build uncacheable and added a store write per request (2026-10-22).
|
| 225 |
+
if current != [(shares.EVERYONE, 'edit')] or record.get('owner') != IMAGE_FIELD_CREATOR:
|
| 226 |
+
shares.set_grants('field', oid, [{'user': shares.EVERYONE, 'role': 'edit'}],
|
| 227 |
+
owner=IMAGE_FIELD_CREATOR, st=st)
|
| 228 |
except Exception:
|
| 229 |
pass
|
| 230 |
return merged
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
77bf88452227995c5b58bdee2b84a273f713d627b9efdaad53073878ead429dc
|