Skip to content

Commit

Permalink
Add database.rules.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Jun 26, 2021
1 parent 51144fd commit e3742ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"rules": {
"users": {
"$uid": {
".read": "auth != null && auth.uid == $uid",
".write": "auth != null && auth.uid == $uid"
}
},
"email_list": {
"$email_entry": {
".write": "!data.exists()"
}
}
}
}
3 changes: 3 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "dist",
"ignore": [
Expand Down

0 comments on commit e3742ac

Please sign in to comment.