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 · 710 bytes · 12 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | {"effect": "allow", "principal": "registered", "actions": ["read"], "collection": "record_shares", |
| 4 | "row_filter": {"granted_by": "$user_id"}, |
| 5 | "reason": "a granter can list the grants they made (the Share widget's roster)"}, |
| 6 | {"effect": "allow", "principal": "registered", "actions": ["read"], "collection": "record_shares", |
| 7 | "row_filter": {"user_id": "$user_id"}, |
| 8 | "reason": "a grantee can see grants made to them"}, |
| 9 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_share", |
| 10 | "reason": "the share widget is a public static script (like site_list); grants are still written only by the owner-checked /api/share endpoint"} |
| 11 | ] |
| 12 | } |