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.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
rules.json · 860 bytes · 40 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "registered", |
| 6 | "actions": [ |
| 7 | "create", |
| 8 | "read", |
| 9 | "update", |
| 10 | "delete" |
| 11 | ], |
| 12 | "collection": "events", |
| 13 | "row_filter": { |
| 14 | "owner_id": "$user_id" |
| 15 | }, |
| 16 | "reason": "signed-in users manage their own events" |
| 17 | }, |
| 18 | { |
| 19 | "effect": "allow", |
| 20 | "principal": "registered", |
| 21 | "actions": [ |
| 22 | "read" |
| 23 | ], |
| 24 | "collection": "events", |
| 25 | "row_filter": { |
| 26 | "project_id": "$accessible_projects" |
| 27 | }, |
| 28 | "reason": "events in projects shared with a user are readable" |
| 29 | }, |
| 30 | { |
| 31 | "effect": "allow", |
| 32 | "principal": "public", |
| 33 | "actions": [ |
| 34 | "execute" |
| 35 | ], |
| 36 | "object_id": "site_calendar", |
| 37 | "reason": "the calendar page is public; it shows a sign-in prompt to visitors" |
| 38 | } |
| 39 | ] |
| 40 | } |