forked from neojato/DeLorean-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.rules.json
48 lines (48 loc) · 1.77 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
{
"rules": {
".read": "true",
"admins": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"userProfile": {
".write": "auth != null && auth.provider == 'google'"
},
"$year": {
"levels": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"schedules": {
"$user_id": {
".read": "auth != null && auth.provider == 'google' && $user_id == auth.uid",
".write": "auth != null && auth.provider == 'google' && $user_id == auth.uid"
}
},
"sections": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"sessions": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()",
"$session_id": {
"surveys": {
".read": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()",
".write": "auth != null && auth.provider == 'google'"
}
}
},
"siteConfig": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"speakers": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()",
".indexOn": "featured"
},
"sponsors": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"tickets": {
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()",
".indexOn": "active"
}
}
}
}