From 5082c8b3f2a40f5fa8fa5df95c3a0f9e0be5edf5 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Tue, 18 Jan 2022 21:50:50 -0600 Subject: [PATCH] rules change --- firestore.rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firestore.rules b/firestore.rules index f758a19c..4b1d7142 100644 --- a/firestore.rules +++ b/firestore.rules @@ -5,7 +5,10 @@ service cloud.firestore { match /users/{userId} { allow read; - allow create: if request.auth != null; + } + + match /private-users/{userId} { + allow read: if resource.data.creatorId == request.auth.uid; } match /contracts/{contractId} {