-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
29 lines (27 loc) · 888 Bytes
/
Copy pathdatabase.rules.json
File metadata and controls
29 lines (27 loc) · 888 Bytes
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
{
"rules": {
"channels": {
"$channelId": {
".read": "auth != null && data.child('members').child(auth.uid).exists()",
".write": "auth != null && data.child('members').child(auth.uid).exists()",
"members": {
"$uid": {
".write": "auth != null && auth.uid === $uid"
}
},
"signals": {
".indexOn": ["timestamp"],
"$signalId": {
".validate": "newData.hasChildren(['sender', 'timestamp'])"
}
},
"introductions": {
".indexOn": ["timestamp"]
},
"joinRequests": {
".indexOn": ["timestamp"]
}
}
}
}
}