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 · 962 bytes · 36 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "registered", |
| 6 | "actions": [ |
| 7 | "create", |
| 8 | "read", |
| 9 | "update" |
| 10 | ], |
| 11 | "collection": "scans", |
| 12 | "row_filter": { |
| 13 | "owner_id": "$user_id" |
| 14 | }, |
| 15 | "reason": "people see and manage the documents they sent in; a scan is somebody's paperwork, not the company's noticeboard" |
| 16 | }, |
| 17 | { |
| 18 | "effect": "allow", |
| 19 | "principal": "registered", |
| 20 | "actions": [ |
| 21 | "execute" |
| 22 | ], |
| 23 | "object_id": "action_scan_ingest", |
| 24 | "reason": "capture has to be available to whoever is holding the receipt, which is everybody" |
| 25 | }, |
| 26 | { |
| 27 | "effect": "allow", |
| 28 | "principal": "registered", |
| 29 | "actions": [ |
| 30 | "execute" |
| 31 | ], |
| 32 | "object_id": "action_confirm_scan", |
| 33 | "reason": "confirming creates a DRAFT expense owned by the confirmer; it still faces the approval gate, which somebody else has to pass it through" |
| 34 | } |
| 35 | ] |
| 36 | } |