Skip to content

Instantly share code, notes, and snippets.

@efi-mk
Created July 23, 2018 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efi-mk/9dc47bf4b706ca8680f097aaeb70d2ce to your computer and use it in GitHub Desktop.
Save efi-mk/9dc47bf4b706ca8680f097aaeb70d2ce to your computer and use it in GitHub Desktop.
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