From 2453fcf1efd9c7a342acdc7eacc2d4351371f116 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 5 Jan 2022 11:42:43 -0600 Subject: [PATCH] basic firestore rules --- firestore.rules | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 firestore.rules diff --git a/firestore.rules b/firestore.rules new file mode 100644 index 00000000..14047e59 --- /dev/null +++ b/firestore.rules @@ -0,0 +1,25 @@ +rules_version = '2'; + +service cloud.firestore { + match /databases/{database}/documents { + + match /users/{userId} { + allow read; + allow create: if request.auth != null; + } + + match /contracts/{contractId} { + allow read; + } + + match /contracts/bets/{betId} { + allow read; + } + + match /contracts/comments/{commentId} { + allow read; + allow create: if request.auth != null; + } + + } +} \ No newline at end of file