-
Notifications
You must be signed in to change notification settings - Fork 1
/
database.rules.json
50 lines (50 loc) · 1.51 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"rules": {
"admin": {
".read": "auth != null",
".write": "auth != null && root.child('admin').child(auth.uid).val() === '1'"
},
"paid": {
".read": "auth != null",
".write": "auth != null && root.child('admin').child(auth.uid).val() === '1'"
},
"confirmPayment": {
".read": "auth != null",
".write": "auth != null"
},
"confirmedPayment": {
".read": "auth != null && root.child('admin').child(auth.uid).val() === '1'",
".write": "auth != null && root.child('admin').child(auth.uid).val() === '1'"
},
"beta": {
".read": "auth != null",
".write": "auth != null && root.child('admin').child(auth.uid).val() === '1'"
},
"confirmBeta": {
".read": "auth != null",
".write": "auth != null"
},
"confirmedBeta": {
".read": "auth != null && root.child('admin').child(auth.uid).val() === '1'",
".write": "auth != null && root.child('admin').child(auth.uid).val() === '1'"
},
"favorites": {
"$userId": {
".read": "auth.uid === $userId",
".write": "auth.uid === $userId"
}
},
"satsang": {
"$userId": {
".read": "auth.uid === $userId",
".write": "auth != null && root.child('admin').child(auth.uid).val() === '1'"
}
},
"messages": {
"$userId": {
".read": "auth != null && (auth.uid === $userId || root.child('admin').child(auth.uid).val() === '1')",
".write": "auth != null && auth.uid === $userId"
}
}
}
}