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