-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
30 lines (30 loc) · 1.11 KB
/
Copy pathdatabase.rules.json
File metadata and controls
30 lines (30 loc) · 1.11 KB
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
{
"rules": {
".read": false,
".write": false,
"users": {
"$userId": {
".read": "$userId === auth.uid",
".write": "$userId === auth.uid"
}
},
"trees": {
"$treeId": {
".read": "auth != null && data.child('members').hasChild(auth.uid)",
".write": "auth != null && data.child('members').hasChild(auth.uid)",
"items": {
".read": "auth != null && root.child('trees').child($treeId).child('members').hasChild(auth.uid)",
".write": "auth != null && root.child('trees').child($treeId).child('members').hasChild(auth.uid)"
},
"name": {
".read": "auth != null && root.child('trees').child($treeId).child('members').hasChild(auth.uid)",
".write": "auth != null && root.child('trees').child($treeId).child('members').hasChild(auth.uid)"
},
"members": {
".read": "auth != null && root.child('trees').child($treeId).child('members').hasChild(auth.uid)",
".write": "auth != null && root.child('trees').child($treeId).child('members').hasChild(auth.uid)"
}
}
}
}
}