From f2a16afc903a12904f16d454fc7b7af33c2c8a2f Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 18 Jul 2022 14:52:28 -0600 Subject: [PATCH] Update firestore rules for question editing --- firestore.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firestore.rules b/firestore.rules index 63df4d16..96378d8b 100644 --- a/firestore.rules +++ b/firestore.rules @@ -76,7 +76,7 @@ service cloud.firestore { allow update: if request.resource.data.diff(resource.data).affectedKeys() .hasOnly(['tags', 'lowercaseTags', 'groupSlugs']); allow update: if request.resource.data.diff(resource.data).affectedKeys() - .hasOnly(['description', 'closeTime']) + .hasOnly(['description', 'closeTime', 'question']) && resource.data.creatorId == request.auth.uid; allow update: if isAdmin(); match /comments/{commentId} {