-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
35 lines (35 loc) · 807 Bytes
/
database.rules.json
File metadata and controls
35 lines (35 loc) · 807 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
30
31
32
33
34
35
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": "auth.uid !== null",
".write": false,
"users": {
".read": "true",
".indexOn": "search",
"$uid": {
// Allow write access to owner
".write": "auth.uid === $uid"
}
},
"matches": {
".read": "auth.uid !== null",
".write": "auth.uid !== null",
"$uid": {
".indexOn": "sort"
}
},
"games": {
".read": "auth.uid !== null",
".write": "auth.uid !== null"
},
"moves": {
".read": "auth.uid !== null",
".write": "auth.uid !== null",
".indexOn": "friend"
},
"chats": {
".read": "auth.uid !== null",
".write": "auth.uid !== null"
}
}
}