This commit is contained in:
2025-10-31 09:19:45 -07:00
parent 24d07f7a4e
commit 14a09b5eff
4 changed files with 63 additions and 7 deletions

14
firestore.rules Normal file
View File

@@ -0,0 +1,14 @@
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// Allow read/write access to user's own settings
match /users/{userId} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
// Deny access to all other documents
match /{document=**} {
allow read, write: if false;
}
}
}