Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
rules.json · 2.0 KB · 25 lines
1{
2 "rules": [
3 {
4 "effect": "allow",
5 "principal": "registered",
6 "actions": ["create", "read", "update"],
7 "collection": "pickup_slots",
8 "reason": "the board of collection windows is shop-wide furniture, not one person's paperwork: it is read by every storefront render and edited by whoever is on shift, so it is deliberately NOT row-filtered to an owner the way orders and shipments are -- a slot owned by whoever happened to be signed in when the generator last ran would be invisible to the person actually standing at the counter. No delete, for the same reason a shipment has none: a window somebody has already booked into cannot be made not to have existed, and the way to stop taking orders for it is is_open=false, which keeps the orders that are already in it"
9 },
10 {
11 "effect": "allow",
12 "principal": "public",
13 "actions": ["execute"],
14 "object_id": "action_pickup_slots",
15 "reason": "PUBLIC on the action object only, never on the collection: this shop's default sale is a guest checkout, so the person choosing a collection time has no account and this is the read their time picker is built from. What it hands back is bounded to exactly what a shop puts on a sign in its window -- the times it is open and whether each is full -- with no owner, no notes and no order behind them, and it can write nothing at all. The collection itself stays registered-only, which is the same split app-invoices uses for site_invoice_portal and app-orders for site_order_status"
16 },
17 {
18 "effect": "allow",
19 "principal": "registered",
20 "actions": ["execute"],
21 "object_id": "system_slot_generator",
22 "reason": "the scheduler runs this nightly, and an operator who has just changed their opening hours should be able to poke it without an admin token: it only ever ADDS windows that its own settings describe, never edits or deletes one somebody made, so the worst a signed-in person can do with it is create tomorrow twice -- which its (starts_at, location) idempotency makes a no-op"
23 }
24 ]
25}