-
Notifications
You must be signed in to change notification settings - Fork 0
/
database-rules.json
71 lines (71 loc) · 1.96 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"rules": {
"codelabs": {
".read": "true",
".write": "false"
},
"users": {
".read": "true",
".write": "false",
"$uid": {
".read": "true",
".write": "auth.uid == $uid",
"chapter": {
".write": "!data.exists() && auth.uid == $uid"
},
"displayName": {
".write": "auth.uid == $uid"
},
"photoURL": {
".write": "auth.uid == $uid"
},
"android": {
".validate": "newData.isNumber() && newData.val() >= 0",
".write": "auth.uid == $uid"
},
"cloud": {
".validate": "newData.isNumber() && newData.val() >= 0",
".write": "auth.uid == $uid"
},
"firebase": {
".validate": "newData.isNumber() && newData.val() >= 0",
".write": "auth.uid == $uid"
},
"vr": {
".validate": "newData.isNumber() && newData.val() >= 0",
".write": "auth.uid == $uid"
},
"web": {
".validate": "newData.isNumber() && newData.val() >= 0",
".write": "auth.uid == $uid"
},
"score": {
".validate": "newData.isNumber() && newData.val() >= 0",
".write": "auth.uid == $uid"
},
"codelabs": {
"$codelab_key": {
"cA": {
".validate": "!data.exists() && newData.isNumber() && newData.val() >= 0 && newData.val() <= 5"
},
"score": {
".validate": "!data.exists() && newData.isNumber() && newData.val() >= 0 && newData.val() <= 100"
},
"start_quiz": {
".validate": "!data.exists()"
},
"start_time": {
".validate": "!data.exists()"
},
"end_quiz": {
".validate": "!data.exists()"
},
"end_time": {
".validate": "!data.exists()"
}
}
}
}
}
}
}