pike/glyph Public Public: anyone can read this; nobody can change it.

forked from apps/glyph

workbenchthis machine
Files 5c2d82ded0cf18c81c70d9f4a3f1de0b1688b125
30 lines · 766 B · ~256 tok Raw History
1
{
2
  "roles": {
3
    "anon": { "above": [], "held": { "by": "everyone" } },
4
    "user": { "above": ["anon"], "held": { "by": "identity", "role": "user" } },
5
    "author": { "above": ["user"], "held": { "by": "row", "column": "author_id" } },
6
    "admin": { "above": ["author"], "held": { "by": "identity", "role": "admin" } }
7
  },
8
  "resources": {
9
    "drawing": {
10
      "api": "/api/drawings",
11
      "can": {
12
        "create": "user",
13
        "read": "author",
14
        "update": "nobody",
15
        "delete": "author",
16
        "list": "author"
17
      }
18
    },
19
    "audit": {
20
      "api": "/api/audit",
21
      "can": {
22
        "create": "nobody",
23
        "read": "admin",
24
        "update": "nobody",
25
        "delete": "nobody",
26
        "list": "admin"
27
      }
28
    }
29
  }
30
}
↑↓ navigate ↵ open esc close
↑↓ navigate ↵ open esc close

Keyboard shortcuts