From 3d780be70aa5cc2e58e0424c4591c1cc3da8665d Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 5 Jan 2022 21:04:10 -0600 Subject: [PATCH] rules: allow contract deletion by creator --- firestore.rules | 1 + 1 file changed, 1 insertion(+) diff --git a/firestore.rules b/firestore.rules index be39de5f..d7149344 100644 --- a/firestore.rules +++ b/firestore.rules @@ -10,6 +10,7 @@ service cloud.firestore { match /contracts/{contractId} { allow read; + allow delete: if resource.data.creatorId == request.auth.uid; } match /contracts/{contractId}/bets/{betId} {