askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
rules.json · 1.6 KB · 47 lines
| 1 | { |
| 2 | "retracted": [ |
| 3 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_contacts", "reason": "no package ships this object, so the grant made whatever was later created under the id runnable without a rule written for it (bug-reports/2026-11-28-06-14-43)"} |
| 4 | ], |
| 5 | "rules": [ |
| 6 | { |
| 7 | "effect": "allow", |
| 8 | "principal": "registered", |
| 9 | "actions": ["create", "read", "update", "delete"], |
| 10 | "collection": "contacts", |
| 11 | "row_filter": {"owner_id": "$user_id"}, |
| 12 | "reason": "signed-in users manage their own contacts" |
| 13 | }, |
| 14 | { |
| 15 | "effect": "allow", |
| 16 | "principal": "registered", |
| 17 | "actions": ["read"], |
| 18 | "collection": "contacts", |
| 19 | "row_filter": {"project_id": "$accessible_projects"}, |
| 20 | "reason": "contacts in projects shared with a user are readable" |
| 21 | }, |
| 22 | { |
| 23 | "effect": "allow", |
| 24 | "principal": "registered", |
| 25 | "actions": ["create", "read", "update", "delete"], |
| 26 | "collection": "organizations", |
| 27 | "row_filter": {"owner_id": "$user_id"}, |
| 28 | "reason": "signed-in users manage their own organizations" |
| 29 | }, |
| 30 | { |
| 31 | "effect": "allow", |
| 32 | "principal": "registered", |
| 33 | "actions": ["create", "read", "update", "delete"], |
| 34 | "collection": "interactions", |
| 35 | "row_filter": {"owner_id": "$user_id"}, |
| 36 | "reason": "signed-in users manage their own interaction log" |
| 37 | }, |
| 38 | { |
| 39 | "effect": "allow", |
| 40 | "principal": "registered", |
| 41 | "actions": ["create", "read", "update", "delete"], |
| 42 | "collection": "tags", |
| 43 | "row_filter": {"owner_id": "$user_id"}, |
| 44 | "reason": "signed-in users manage their own tags" |
| 45 | } |
| 46 | ] |
| 47 | } |