-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.rules.json
26 lines (26 loc) · 1.01 KB
/
database.rules.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
{
"rules":{
"admin": {
".read": false,
".write": false
},
"draw": {
".read": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true",
".write": "auth != null"
},
"drawValidated":{
".read": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true",
".write": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true"
},
"drawShow":{
".read": true,
".write": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true"
},
"drawSaved":{
"$userId":{
".read": "auth != null && $userId === auth.uid",
".write": "auth != null && root.child('admins').child(auth.token.email.replace('.', '*')).exists() && auth.token.email_verified == true"
}
}
}
}