Skip to content

Commit

Permalink
Update rules to allow for emails
Browse files Browse the repository at this point in the history
  • Loading branch information
odarbelaeze committed Oct 25, 2020
1 parent b8bd96a commit 59e0fcd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion firebase/firestore.rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ service cloud.firestore {
allow read: if
request.time < timestamp.date(2021, 11, 10);
}
match /emails/{email} {
allow write: if request.resource.data.email.matches(".*@.*");
allow read: if false;
}
match /{document=**} {
allow read, write: if false
}
}
}
}

0 comments on commit 59e0fcd

Please sign in to comment.