-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
59 lines (59 loc) · 1.23 KB
/
database.rules.json
File metadata and controls
59 lines (59 loc) · 1.23 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
{
"rules":{
".write":"false",
".read":"false",
"alerts": {
".write": "false",
".read": "true"
},
"LOG": {
".write":"(((((!newData.exists()||newData.hasChildren())))))",
".read":"false"
},
"courses": {
".write":"false",
".read":"true",
"$crsId": {
".write":"false",
".read":"true",
"department": {
".write":"false",
".read":"true"
},
"foundational": {
".write":"false",
".read":"true"
},
"icon": {
".write":"false",
".read":"true"
},
"name": {
".write":"false",
".read":"true"
},
"number": {
".write":"false",
".read":"true"
},
"section": {
".write":"false",
".read":"true"
},
"$other":{".validate":"false"}
}
},
"users": {
"$uid": {
".read": "auth != null && auth.uid == $uid",
".write": "auth != null && auth.uid == $uid"
}
},
"reviews": {
".indexOn": ["created", "author", "course"],
".write":"auth != null",
".read":"auth != null"
},
"$other":{".validate":"false"}
}
}