-
Notifications
You must be signed in to change notification settings - Fork 3
/
firebase-rules.json
74 lines (74 loc) · 3.13 KB
/
firebase-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
72
73
74
{
"rules": {
"2019":{
".read": "false",
".write": "false"
},
"2020":{
".read": "false",
".write": "false"
},
"2021":{
".read": "auth.token.admin === true",
"$uid": {
".write": "$uid === auth.uid",
"$other": { ".validate": false },
"submitted-sessions": {
"title": {
".validate": "newData.isString() && newData.val().length <= 50",
"$other": { ".validate": false },
"title": {
".validate": "newData.isString() && newData.val().length <= 50"
},
"summary": {
".validate": "newData.isString() && newData.val().length <= 3000"
},
"targetLevel": {
".validate": "newData.isString() && newData.val().length <= 10"
},
"category": {
".validate": "newData.isString() && newData.val().length < 100"
},
"acknowledgedTerms": {
".validate": "newData.isBoolean()"
},
"notes": {
".validate": "newData.isString() && newData.val().length <= 3000"
},
"presenters": {
"$other": { ".validate": false },
"firstName": {
".validate": "newData.isString() && newData.val().length <= 50"
},
"lastName": {
".validate": "newData.isString() && newData.val().length <= 50"
},
"bio": {
".validate": "newData.isString() && newData.val().length <= 1000"
},
"title": {
".validate": "newData.isString() && newData.val().length <= 50"
},
"company": {
".validate": "newData.isString() && newData.val().length <= 50"
},
"phone_number": {
".validate": "newData.isString() && newData.val().length <= 15"
},
"email": {
".validate": "newData.isString() && newData.val().length <= 150"
}
}
}
},
"favorited-sessions": {
".read": "$uid === auth.uid",
"$other": { ".validate": false },
"contentfulId": {
".validate": "newData.isString() && newData.val().length < 50"
}
}
}
}
}
}