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 · 749 bytes · 26 lines
| 1 | { |
| 2 | "rules": [ |
| 3 | { |
| 4 | "effect": "allow", |
| 5 | "principal": "registered", |
| 6 | "actions": ["create", "read", "update", "delete"], |
| 7 | "collection": "user_prefs", |
| 8 | "row_filter": {"owner_id": "$user_id"}, |
| 9 | "reason": "signed-in users manage their own preferences" |
| 10 | }, |
| 11 | { |
| 12 | "effect": "allow", |
| 13 | "principal": "registered", |
| 14 | "actions": ["read"], |
| 15 | "collection": "feature_flags", |
| 16 | "reason": "signed-in users can read feature flags" |
| 17 | }, |
| 18 | { |
| 19 | "effect": "allow", |
| 20 | "principal": "registered", |
| 21 | "actions": ["read"], |
| 22 | "collection": "ai_prices", |
| 23 | "reason": "signed-in users can read AI pricing (e.g. to show estimated cost before sending a chat); only admins can edit prices" |
| 24 | } |
| 25 | ] |
| 26 | } |