Skip to content

Instantly share code, notes, and snippets.

@Eosis
Created January 13, 2022 17:51
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 Eosis/c75307ce636200f0074daf2f94b3622b to your computer and use it in GitHub Desktop.
Save Eosis/c75307ce636200f0074daf2f94b3622b to your computer and use it in GitHub Desktop.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{userId} {
allow read: if request.auth != null
match /private/info {
allow write: if request.auth && request.auth.uid == userId
allow read: if request.auth && request.auth.uid == userId
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment