Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit dbf4008

Browse files
chore(example): update Firebase rules
1 parent 0ea1329 commit dbf4008

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/angular-cli/database.rules.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"rules": {
3-
".read": "true",
4-
".write": "auth != null",
3+
".read": "false",
4+
".write": "false",
55
"car": {
6+
".read": "true",
67
".write": "true",
78
".validate": "newData.hasChildren(['tires', 'type', 'maxSpeed'])",
89
"tires": {
@@ -20,6 +21,7 @@
2021
"$other": { ".validate": "false" }
2122
},
2223
"conflict": {
24+
".read": "true",
2325
"messages": {
2426
".write": "true",
2527
".indexOn": ["timestamp"],
@@ -47,13 +49,19 @@
4749
}
4850
},
4951
"groceries":{
52+
".read": "true",
5053
".write": "true",
5154
"$item": {
5255
"text": {
5356
".validate": "root.child('rules/groceries/' + newData.val()).exists()"
5457
},
5558
"$other": { ".validate": "false" }
5659
}
60+
},
61+
"issues": {
62+
"58": {
63+
".read": "auth != null"
64+
}
5765
}
5866
}
5967
}

0 commit comments

Comments
 (0)