From 8e51f684304faba1e18bae2e0e7f8cb23d51d3b3 Mon Sep 17 00:00:00 2001 From: jahooma Date: Wed, 26 Jan 2022 15:03:45 -0600 Subject: [PATCH] Update private user rule to check id field --- firestore.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firestore.rules b/firestore.rules index a07c5aed..d96546d9 100644 --- a/firestore.rules +++ b/firestore.rules @@ -16,7 +16,7 @@ service cloud.firestore { } match /private-users/{userId} { - allow read: if resource.data.creatorId == request.auth.uid || isAdmin(); + allow read: if resource.data.id == request.auth.uid || isAdmin(); } match /contracts/{contractId} {