Skip to content

Commit

Permalink
Fix firestore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Oct 23, 2023
1 parent 5796d90 commit 08726e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firestore.rules
Original file line number Diff line number Diff line change
@@ -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;
}
}
}

0 comments on commit 08726e3

Please sign in to comment.