-
Notifications
You must be signed in to change notification settings - Fork 54
/
database.rules.json
56 lines (56 loc) · 1.98 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
51
52
53
54
55
56
{
"rules": {
"admins": {
".read": true,
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"userProfile": {
".read": "auth != null && auth.provider == 'google'",
".write": "auth != null && auth.provider == 'google'"
},
"$year": {
"levels": {
".read": true,
".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": {
".read": true,
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"sessions": {
".read": true,
".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": {
".read": true,
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"speakers": {
".read": true,
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()",
".indexOn": "featured"
},
"sponsors": {
".read": true,
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()"
},
"tickets": {
".read": true,
".write": "auth != null && auth.provider == 'google' && root.child('admins').child(auth.uid).exists()",
".indexOn": "active"
}
}
}
}