-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseRules.json
More file actions
61 lines (58 loc) · 1.96 KB
/
firebaseRules.json
File metadata and controls
61 lines (58 loc) · 1.96 KB
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
//These don't actually do anything. Need to be loaded into firebase.
{
"rules": {
"classes": {
".read": "auth !== null",
".write": "auth !== null"
},
"fbUsers": {
"$user_id": {
".write": "$user_id === auth.uid",
".read": "auth !== null"
}
},
"feedback": {
".read": false,
".write": "auth !== null"
},
"upcomingIntros": {
".read": "auth !== null",
".write": "auth.role === 'admin'"
},
"WODs": {
".read": "auth !== null",
".write": "auth.role === 'admin'"
}
}
}
"classes": {
//".write": "auth !== null",
".read": "auth !== null",
"$classWeek": {
".write": "auth.role === 'admin'",
"$classDay": {
"dayofWeek":{".write":"auth.role === 'admin'"},
"formattedDate":{".write":"auth.role === 'admin'"},
"slots": {
"consumersCanHearEachOther":{".write": "auth.role === 'admin' || auth.role==='instructor'"},
"tabata":{".write": false},
"level":{".write": "auth.role === 'admin' || auth.role==='instructor'"},
"date":{".write": "auth.role === 'admin'"},
"musicVolume":{".write": "auth.role === 'admin' || auth.role==='instructor'"},
//"tabata":{".write": "auth.role === 'admin' || auth.role==='instructor'"},
"sessionId":{".write": "auth.role === 'admin'"},
"time":{".write": "auth.role === 'admin'"},
"trainer":{".write": "auth.role === 'admin' || auth.role==='instructor'"},
"$slot_timestamp": {
"tabata":{".write": false},
"bookedUsers": {
"$user_id": {
".write": "$user_id === auth.mdbId",
".read": "auth !== null"
}
}
}
}
}
}
},