fsanyoto commited on
Commit
35ec281
·
verified ·
1 Parent(s): 382942c

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "current": "eb42401d8c",
3
  "releases": []
4
  }
 
1
  {
2
+ "current": "3d2a621a60",
3
  "releases": []
4
  }
VERSION CHANGED
@@ -1 +1 @@
1
- eb42401d8c
 
1
+ 3d2a621a60
api/application_registry.py CHANGED
@@ -1462,7 +1462,18 @@ def create(runtime, tenant, user, payload, *, semantic_records=None, field_contr
1462
  readable = next((held for held in exc.live if may_read(held, user, is_admin)), None)
1463
  if readable is None:
1464
  raise ApplicationExistsError() from None
1465
- result = _public(readable, user, is_admin, allowed_databases=allowed_databases)
 
 
 
 
 
 
 
 
 
 
 
1466
  result["existing"] = True
1467
  return result
1468
  result = _public(app,user,allowed_databases=allowed_databases)
 
1462
  readable = next((held for held in exc.live if may_read(held, user, is_admin)), None)
1463
  if readable is None:
1464
  raise ApplicationExistsError() from None
1465
+ result = None
1466
+ if (is_admin and readable.get("createdBy") != user
1467
+ and (readable.get("share") or {}).get("mode") != "tenant"
1468
+ and not workspace_share_needs_approval(readable, is_admin)):
1469
+ # The tenant's one copy is listed for everyone; an admin's add shares a private legacy copy.
1470
+ try:
1471
+ result = mutate(runtime, readable["id"], user, is_admin,
1472
+ {"share": {"mode": "tenant", "users": []}}, allowed_databases=allowed_databases)
1473
+ except Exception:
1474
+ result = None
1475
+ if result is None:
1476
+ result = _public(readable, user, is_admin, allowed_databases=allowed_databases)
1477
  result["existing"] = True
1478
  return result
1479
  result = _public(app,user,allowed_databases=allowed_databases)
web/public/AIOS_DEPLOY_RECEIPT CHANGED
@@ -1 +1 @@
1
- 705fbaa5d6b1c201070c0b8e88cd5bb1a0a32b369058d03bce150e62f8cfe8bb
 
1
+ 1ed501a0a0a234a7cf999dec8e1bdcea044b262558c8b0cfe1b9c47ae3bcfccc