-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebaseRules.json
76 lines (76 loc) · 3.62 KB
/
firebaseRules.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"rules": {
".read": false,
".write": false,
"admin_users": {
".read": "root.child('root_admins').child(auth.uid).val() === true",
".write": "root.child('root_admins').child(auth.uid).val() === true",
"$user_id": {
".read": "root.child('root_admins').child(auth.uid).val() === true || auth.uid===$user_id",
".write": "root.child('root_admins').child(auth.uid).val() === true || auth.uid===$user_id"
}
},
"common_apps": {
".read": "true",
".write": "root.child('root_admins').child(auth.uid).val() === true",
"$app_group": {
"$conference_id": {
".write": "root.child('conferences').child($conference_id).child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true"
}
}
},
"root_admins": {
".read": "root.child('root_admins').child(auth.uid).val() === true",
".write": "false"
},
"conferences": {
".read": "root.child('root_admins').child(auth.uid).val() === true",
".write": "root.child('root_admins').child(auth.uid).val() === true",
"$conference_id": {
".read": "data.child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true || $conference_id==='default'",
".write": "data.child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true",
"currentDatabaseVersion": {
".read": "true"
},
"currentJSONDatabase": {
".read": "true"
}
}
},
"deployed_databases": {
".read": "true",
"$conference_id": {
".write": "root.child('conferences').child($conference_id).child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true"
}
},
"pre_release_databases": {
".read": "true",
"$conference_id": {
".write": "root.child('conferences').child($conference_id).child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true"
}
},
"user_data": {
"$conference_id": {
".read": "root.child('conferences').child($conference_id).child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true",
"$user_id": {
".write": "auth.uid === $user_id",
".read": "auth.uid === $user_id || root.child('conferences').child($conference_id).child('admins').child(auth.uid).val() === true || root.child('root_admins').child(auth.uid).val() === true",
"$event_id": {
"note": {
".write": "!data.child('updated_at').isNumber() || newData.child('updated_at').val() > data.child('updated_at').val()"
},
"vote": {
".write": "!data.child('updated_at').isNumber() || newData.child('updated_at').val() > data.child('updated_at').val()"
},
"schedule": {
".write": "!data.child('updated_at').isNumber() || newData.child('updated_at').val() > data.child('updated_at').val()"
},
"reading_list": {
".write": "!data.child('updated_at').isNumber() || newData.child('updated_at').val() > data.child('updated_at').val()"
}
}
}
}
}
}
}