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 · 1.7 KB · 53 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "public", |
| 6 | "actions": ["execute"], |
| 7 | "object_id": "action_nav_entries", |
| 8 | "reason": "the menu is public; the object itself decides which tier of door each caller is shown" |
| 9 | }, |
| 10 | { |
| 11 | "effect": "allow", |
| 12 | "principal": "public", |
| 13 | "actions": ["execute"], |
| 14 | "object_id": "site_home", |
| 15 | "reason": "the front door is public; it shows the public tier plus a sign-in prompt to visitors" |
| 16 | }, |
| 17 | { |
| 18 | "effect": "allow", |
| 19 | "principal": "registered", |
| 20 | "actions": ["read"], |
| 21 | "collection": "nav_entries", |
| 22 | "reason": "a signed-in user may read the registry the menu is folded from" |
| 23 | }, |
| 24 | { |
| 25 | "effect": "allow", |
| 26 | "principal": "role:manager", |
| 27 | "actions": ["update"], |
| 28 | "collection": "nav_entries", |
| 29 | "reason": "an operator flips operator_hidden to take a door off this deployment's menu without editing anybody's package" |
| 30 | }, |
| 31 | { |
| 32 | "effect": "allow", |
| 33 | "principal": "registered", |
| 34 | "actions": ["read"], |
| 35 | "collection": "attention_sources", |
| 36 | "reason": "a signed-in user may read what each app says needs a human; the counts themselves are the interesting part and live next door" |
| 37 | }, |
| 38 | { |
| 39 | "effect": "allow", |
| 40 | "principal": "role:manager", |
| 41 | "actions": ["update"], |
| 42 | "collection": "attention_sources", |
| 43 | "reason": "an operator flips operator_muted to silence a queue this deployment does not work, without editing anybody's package" |
| 44 | }, |
| 45 | { |
| 46 | "effect": "allow", |
| 47 | "principal": "registered", |
| 48 | "actions": ["read"], |
| 49 | "collection": "attention_counts", |
| 50 | "reason": "the rollup a signed-in user's home page is folded from; the daemon writes it and no human needs to" |
| 51 | } |
| 52 | ] |
| 53 | } |