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 · 1001 bytes · 24 lines
| 1 | { |
| 2 | "retracted": [ |
| 3 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_articles", "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 | {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_article_view", "reason": "an earlier version's grant for an object this package no longer ships"} |
| 5 | ], |
| 6 | "rules": [ |
| 7 | { |
| 8 | "effect": "allow", |
| 9 | "principal": "registered", |
| 10 | "actions": ["create", "read", "update", "delete"], |
| 11 | "collection": "articles", |
| 12 | "row_filter": {"owner_id": "$user_id"}, |
| 13 | "reason": "signed-in users manage their own articles" |
| 14 | }, |
| 15 | { |
| 16 | "effect": "allow", |
| 17 | "principal": "public", |
| 18 | "actions": ["read"], |
| 19 | "collection": "articles", |
| 20 | "row_filter": {"is_public": "true"}, |
| 21 | "reason": "published articles are readable by anyone" |
| 22 | } |
| 23 | ] |
| 24 | } |