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.0 KB · 31 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "public", |
| 6 | "actions": [ |
| 7 | "execute" |
| 8 | ], |
| 9 | "object_id": "site_shop", |
| 10 | "reason": "a shop nobody can reach without signing in is not a shop; the page is public and every write it makes goes through the cart/checkout objects, which scope everything to the caller's session token" |
| 11 | }, |
| 12 | { |
| 13 | "effect": "allow", |
| 14 | "principal": "public", |
| 15 | "actions": [ |
| 16 | "execute" |
| 17 | ], |
| 18 | "object_id": "action_cart", |
| 19 | "reason": "putting something in a basket must not require an account -- the session token says which basket, never who" |
| 20 | }, |
| 21 | { |
| 22 | "effect": "allow", |
| 23 | "principal": "public", |
| 24 | "actions": [ |
| 25 | "execute" |
| 26 | ], |
| 27 | "object_id": "action_checkout", |
| 28 | "reason": "guest checkout is the default; requiring signup before purchase is the single biggest conversion loss in small-business retail. The order it creates is a DRAFT and nothing is paid or shipped by this call" |
| 29 | } |
| 30 | ] |
| 31 | } |