-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrules.json
More file actions
35 lines (35 loc) · 759 Bytes
/
rules.json
File metadata and controls
35 lines (35 loc) · 759 Bytes
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
{
"rules": {
".read": "true",
"submissions": {
".read": "true",
".indexOn": [
"added",
"_uid",
"status"
],
"$slug": {
".validate": "newData.hasChildren(['name', 'category'])",
"name": {
".validate": "newData.isString()"
},
"category": {
".validate": "newData.isString()"
},
"$other": {
".validate": "false"
},
".write": "auth.uid != null",
"status": {
".validate": "true",
".write": "auth.uid == 'TPdM9feOrbgNHVGHebBT7TBZ8Xj1'"
},
"votes": {
"$uid": {
".write": "(auth != null && auth.uid == $uid)"
}
}
}
}
}
}