Skip to content

Instantly share code, notes, and snippets.

@az67128
Created August 2, 2019 19:35
Show Gist options
  • Save az67128/e839148f4e4abbd20f48c70e4098e886 to your computer and use it in GitHub Desktop.
Save az67128/e839148f4e4abbd20f48c70e4098e886 to your computer and use it in GitHub Desktop.
service cloud.firestore {
match /databases/{database}/documents {
match /user/{userId}/{document=**} {
allow create, read, update, delete: if request.auth.uid == userId;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment