From fbc61fe28fce261945cd66a6a98af4f1c9693d5c Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 5 Jan 2022 16:52:54 -0600 Subject: [PATCH] rules fix --- firestore.rules | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firestore.rules b/firestore.rules index 3ba7d2cf..be39de5f 100644 --- a/firestore.rules +++ b/firestore.rules @@ -12,7 +12,7 @@ service cloud.firestore { allow read; } - match /contracts/bets/{betId} { + match /contracts/{contractId}/bets/{betId} { allow read; } @@ -20,10 +20,14 @@ service cloud.firestore { allow read; } - match /contracts/comments/{commentId} { + match /contracts/{contractId}/comments/{commentId} { allow read; allow create: if request.auth != null; } + match /{somePath=**}/comments/{commentId} { + allow read; + } + } } \ No newline at end of file