Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
service cloud.firestore {
match /databases/{database}/documents {
// Allow user to read only his documents. No write allowed
match /users/{user}/{document=**} {
allow read: if request.auth != null && request.auth.uid == user
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.