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.4 KB · 33 lines
| 1 | { |
| 2 | "retracted": [ |
| 3 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_notes", "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 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_note_view", "reason": "an earlier version's grant for an object this package no longer ships"}, |
| 5 | {"effect": "allow", "principal": "registered", "actions": ["execute"], "object_id": "site_notes", "reason": "an earlier version's grant for an object this package no longer ships"} |
| 6 | ], |
| 7 | "rules": [ |
| 8 | { |
| 9 | "effect": "allow", |
| 10 | "principal": "registered", |
| 11 | "actions": ["create", "read", "update", "delete"], |
| 12 | "collection": "notes", |
| 13 | "row_filter": {"owner_id": "$user_id"}, |
| 14 | "reason": "signed-in users manage their own notes" |
| 15 | }, |
| 16 | { |
| 17 | "effect": "allow", |
| 18 | "principal": "public", |
| 19 | "actions": ["read"], |
| 20 | "collection": "notes", |
| 21 | "row_filter": {"is_public": "true"}, |
| 22 | "reason": "notes marked public are readable by anyone" |
| 23 | }, |
| 24 | { |
| 25 | "effect": "allow", |
| 26 | "principal": "registered", |
| 27 | "actions": ["read"], |
| 28 | "collection": "notes", |
| 29 | "row_filter": {"project_id": "$accessible_projects"}, |
| 30 | "reason": "notes in projects shared with a user are readable" |
| 31 | } |
| 32 | ] |
| 33 | } |