Skip to content

Commit

Permalink
Restore db rules; rm package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelmyers committed Feb 3, 2018
1 parent 8d208b3 commit b79b6d0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1,119 deletions.
6 changes: 6 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}
6 changes: 0 additions & 6 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
},
"hosting": {
"public": "public",
"rewrites": [
{
"source": "/takeout",
"function": "takeout"
}
],
"ignore": [
"firebase.json",
"**/.*",
Expand Down
7 changes: 7 additions & 0 deletions firestore.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth.uid != null;
}
}
}
Loading

0 comments on commit b79b6d0

Please sign in to comment.