-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.rules.json
44 lines (44 loc) · 1.42 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
{
"rules": {
".read": false,
".write": false,
"auth_status": {
"$uid": {
".read": "auth != null && auth.uid == $uid"
}
},
"settings": {
"$uid": {
".read": "auth != null && auth.uid == $uid",
".write": "auth != null && auth.uid == $uid",
"calendar_id": {
".read": "auth != null && auth.uid == $uid",
".validate": "newData.isString()"
},
"courses": {
"$course_id": {
".validate": "data.exists()",
"name": {
".validate": "newData.isString()"
},
"color": {
".validate": "newData.isString()"
},
"href": {
".validate": "newData.isString() && newData.val().matches(/^[\\/a-zA-Z0-9]+$/)"
},
"$other": {
".validate": false
}
}
},
"completed_assignment_color": {
".validate": "newData.isString()"
},
"$other": {
".validate": false
}
}
}
}
}