-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdatabase.json
38 lines (38 loc) · 1 KB
/
database.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
{
"rules": {
"loginTokens": {
".read": false,
".write": false
},
"refreshTokens": {
".read": false,
".write": false
},
"tabletop": {
"$tabletopId": {
".read": "data.child('gm').exists() && data.child('gm').val() === auth.uid",
".write": "data.child('gm').exists() && data.child('gm').val() === auth.uid",
"gm": {
".read": true,
".write": "!data.exists() && newData.val() === auth.uid"
},
"users": {
".read": true,
"$clientId": {
".write": "!data.exists() || data.child('userId').val() === auth.uid"
}
},
"actions": {
".read": true,
"$actionId": {
".write": "!data.exists() && root.child('tabletop/' + $tabletopId + '/users/' + newData.child('fromClientId').val() + '/userId').val() === auth.uid"
}
},
"gmActions": {
".read": false,
".write": false
}
}
}
}
}