-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrule.json
52 lines (52 loc) · 1.04 KB
/
rule.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"roles": [
{
"name": "UserRole",
"apply_when": {
"%%user.custom_data.role": "user"
},
"document_filters": {
"write": false,
"read": {
"role": "user"
}
},
"fields": {
"age": {
"read": false,
"write": false
},
"insurance_type": {
"read": true,
"write": false
},
"name": {
"read": true,
"write": false
},
"role": {
"read": true,
"write": false
}
},
"insert": false,
"delete": false,
"search": true
},
{
"name": "Manager",
"apply_when": {
"%%user.custom_data.role": "manager"
},
"document_filters": {
"write": true,
"read": true
},
"read": true,
"write": true,
"insert": false,
"delete": false,
"search": true
}
]
}