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.5 KB · 59 lines
| 1 | { |
| 2 | "retracted": [ |
| 3 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_tasks", "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": [ |
| 10 | "create", |
| 11 | "read", |
| 12 | "update", |
| 13 | "delete" |
| 14 | ], |
| 15 | "collection": "tasks", |
| 16 | "row_filter": { |
| 17 | "owner_id": "$user_id" |
| 18 | }, |
| 19 | "reason": "signed-in users manage tasks they created" |
| 20 | }, |
| 21 | { |
| 22 | "effect": "allow", |
| 23 | "principal": "registered", |
| 24 | "actions": [ |
| 25 | "read", |
| 26 | "update" |
| 27 | ], |
| 28 | "collection": "tasks", |
| 29 | "row_filter": { |
| 30 | "assigned_to": "$user_id" |
| 31 | }, |
| 32 | "reason": "assignees see and progress tasks assigned to them" |
| 33 | }, |
| 34 | { |
| 35 | "effect": "allow", |
| 36 | "principal": "registered", |
| 37 | "actions": [ |
| 38 | "read" |
| 39 | ], |
| 40 | "collection": "tasks", |
| 41 | "row_filter": { |
| 42 | "project_id": "$accessible_projects" |
| 43 | }, |
| 44 | "reason": "tasks in projects shared with a user are readable" |
| 45 | }, |
| 46 | { |
| 47 | "effect": "allow", |
| 48 | "principal": "registered", |
| 49 | "actions": [ |
| 50 | "read" |
| 51 | ], |
| 52 | "collection": "tasks", |
| 53 | "row_filter": { |
| 54 | "id": "$shared_records" |
| 55 | }, |
| 56 | "reason": "a task explicitly shared with this user (capabilities.shareable via record_shares) is readable" |
| 57 | } |
| 58 | ] |
| 59 | } |