diff --git a/firestore.rules b/firestore.rules index 6b4d87d..5a233b0 100644 --- a/firestore.rules +++ b/firestore.rules @@ -1,8 +1,9 @@ +rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { // Allow only authenticated content owners access match /users/{userId}/{documents=**} { - allow read, write: if request.auth != null && request.auth.uid == userId + allow read, write: if request.auth != null && request.auth.uid == userId; } } }