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

9 downloads

Install on DigitalOcean 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.

Daniel Quellhorst Changelog for this batch. 65ef78d 3 hours, 41 minutes ago History
rules.json · 2.7 KB · 53 lines
1{
2 "retracted": [
3 {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_forum_topic", "reason": "an earlier version's grant for an object this package no longer ships"},
4 {"effect": "allow", "principal": "public", "actions": ["execute"], "object_id": "site_forum", "reason": "the bespoke /forum page was deleted in 0.3.0 (the landing page is a seeded view through site_view_render, which carries its own public grant); no package ships this object, so the grant would make whatever is later created under the id runnable"}
5 ],
6 "rules": [
7 {
8 "effect": "allow",
9 "principal": "public",
10 "actions": ["read"],
11 "collection": "forum_categories",
12 "reason": "the forum is public read; anyone can browse categories, no row_filter needed since every category is visible"
13 },
14 {
15 "effect": "allow",
16 "principal": "public",
17 "actions": ["read"],
18 "collection": "forum_topics",
19 "reason": "the forum is public read; anyone can read topics, no row_filter needed since every topic is visible"
20 },
21 {
22 "effect": "allow",
23 "principal": "public",
24 "actions": ["read"],
25 "collection": "forum_replies",
26 "reason": "the forum is public read; anyone can read replies, no row_filter needed since every reply is visible"
27 },
28 {
29 "effect": "allow",
30 "principal": "registered",
31 "actions": ["create", "read", "update", "delete"],
32 "collection": "forum_categories",
33 "row_filter": {"owner_id": "$user_id"},
34 "reason": "signed-in users manage the categories they created. v1 = author manages their own; cross-user moderation (e.g. an admin/moderator retiring someone else's category) needs a moderator-role rule, deferred -- see dbbasic-package.json"
35 },
36 {
37 "effect": "allow",
38 "principal": "registered",
39 "actions": ["create", "read", "update", "delete"],
40 "collection": "forum_topics",
41 "row_filter": {"owner_id": "$user_id"},
42 "reason": "signed-in users manage the topics they authored, including their own pin/lock/solved flags. v1 = author manages their own; cross-user moderation (an admin/moderator pinning, locking, or marking someone else's topic solved) needs a moderator-role rule, deferred -- see dbbasic-package.json"
43 },
44 {
45 "effect": "allow",
46 "principal": "registered",
47 "actions": ["create", "read", "update", "delete"],
48 "collection": "forum_replies",
49 "row_filter": {"owner_id": "$user_id"},
50 "reason": "signed-in users manage the replies they authored, including marking their own reply as the solution. v1 = author manages their own; a topic owner marking someone else's reply as the solution needs a moderator-role rule, deferred -- see dbbasic-package.json"
51 }
52 ]
53}