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.4 KB · 56 lines
1{
2 "rules": [
3 {
4 "effect": "allow",
5 "principal": "public",
6 "actions": ["read"],
7 "collection": "forum_categories",
8 "reason": "the forum is public read; anyone can browse categories, no row_filter needed since every category is visible"
9 },
10 {
11 "effect": "allow",
12 "principal": "public",
13 "actions": ["read"],
14 "collection": "forum_topics",
15 "reason": "the forum is public read; anyone can read topics, no row_filter needed since every topic is visible"
16 },
17 {
18 "effect": "allow",
19 "principal": "public",
20 "actions": ["read"],
21 "collection": "forum_replies",
22 "reason": "the forum is public read; anyone can read replies, no row_filter needed since every reply is visible"
23 },
24 {
25 "effect": "allow",
26 "principal": "registered",
27 "actions": ["create", "read", "update", "delete"],
28 "collection": "forum_categories",
29 "row_filter": {"owner_id": "$user_id"},
30 "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"
31 },
32 {
33 "effect": "allow",
34 "principal": "registered",
35 "actions": ["create", "read", "update", "delete"],
36 "collection": "forum_topics",
37 "row_filter": {"owner_id": "$user_id"},
38 "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"
39 },
40 {
41 "effect": "allow",
42 "principal": "registered",
43 "actions": ["create", "read", "update", "delete"],
44 "collection": "forum_replies",
45 "row_filter": {"owner_id": "$user_id"},
46 "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"
47 },
48 {
49 "effect": "allow",
50 "principal": "public",
51 "actions": ["execute"],
52 "object_id": "site_forum",
53 "reason": "the forum landing page is public; visitors see categories and recent topics"
54 }
55 ]
56}