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.0 KB · 42 lines
| 1 | { |
| 2 | "retracted": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "public", |
| 6 | "actions": [ |
| 7 | "execute" |
| 8 | ], |
| 9 | "object_id": "site_calendar", |
| 10 | "reason": "the bespoke /calendar page was deleted in 0.2.0 (the calendar is a seeded view through site_view_render, which carries its own public grant); no package ships this object, so the grant would make whatever is later created under the id runnable" |
| 11 | } |
| 12 | ], |
| 13 | "rules": [ |
| 14 | { |
| 15 | "effect": "allow", |
| 16 | "principal": "registered", |
| 17 | "actions": [ |
| 18 | "create", |
| 19 | "read", |
| 20 | "update", |
| 21 | "delete" |
| 22 | ], |
| 23 | "collection": "events", |
| 24 | "row_filter": { |
| 25 | "owner_id": "$user_id" |
| 26 | }, |
| 27 | "reason": "signed-in users manage their own events" |
| 28 | }, |
| 29 | { |
| 30 | "effect": "allow", |
| 31 | "principal": "registered", |
| 32 | "actions": [ |
| 33 | "read" |
| 34 | ], |
| 35 | "collection": "events", |
| 36 | "row_filter": { |
| 37 | "project_id": "$accessible_projects" |
| 38 | }, |
| 39 | "reason": "events in projects shared with a user are readable" |
| 40 | } |
| 41 | ] |
| 42 | } |