From c40f2904f0fcdf0a5faa7216ecbe2813cd86f1f9 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 2 Jun 2022 10:42:05 -0500 Subject: [PATCH] Revert "check id on update (#393)" This reverts commit c2f993ddf25bd116d394a890481c147d9015b295. --- firestore.rules | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firestore.rules b/firestore.rules index e1e82089..feba35d9 100644 --- a/firestore.rules +++ b/firestore.rules @@ -45,8 +45,7 @@ service cloud.firestore { match /contracts/{contractId} { allow read; allow update: if request.resource.data.diff(resource.data).affectedKeys() - .hasOnly(['description', 'closeTime', 'tags', 'lowercaseTags']) - && resource.data.id == request.auth.uid; + .hasOnly(['description', 'closeTime', 'tags', 'lowercaseTags']); allow update: if isAdmin(); }