-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
37 lines (37 loc) · 1.01 KB
/
Copy pathdatabase.rules.json
File metadata and controls
37 lines (37 loc) · 1.01 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
{
"rules": {
"contest_link": {
".read": "true"
},
"users": {
".read": "true",
"$uid": {
".read": "true",
".write": "auth != null && $uid === auth.uid",
"name": {
".validate": "newData.isString() && newData.val().length < 28"
},
"imageURL": { ".validate": true },
"checked_out_book": {".validate": true },
"kattisURL": { ".validate": true },
"totalScore": {".validate": true },
"weeklyScore": {".validate": true },
"problems": {
"easy": { ".validate": true },
"medium": { ".validate": true },
"hard": { ".validate": true },
"$other": { ".validate": false }
},
"$other": { ".validate": false }
}
},
"problems": {
".read": "true",
".write": "auth.token.admin === true",
"easy": { ".validate": true },
"medium": { ".validate": true },
"hard": { ".validate": true },
"$other": { ".validate": false }
}
}
}