forked from googlearchive/office-mover-5000
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecurity-rules.json
23 lines (22 loc) · 888 Bytes
/
security-rules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"rules": {
"background": {
".read": true,
".write": "auth != null",
".validate": "newData.isString()"
},
"furniture": {
".read": true,
"$fid": {
".validate": "newData.hasChildren(['left', 'name', 'rotation', 'top', 'type', 'z-index']) && auth != null",
".write": "newData.val() != null || (auth != null)",
"left": { ".validate": "newData.isNumber()" },
"rotation": { ".validate": "newData.isNumber() && (newData.val() == 0 || newData.val() == 90 || newData.val() == 180 || newData.val() == 270)" },
"top": {".validate": "newData.isNumber()" },
"type": {".validate": "newData.isString()"},
"name": {".validate": "newData.isString()"},
"z-index": {".validate": "newData.isNumber()"}
}
}
}
}