Skip to content

Instantly share code, notes, and snippets.

@AniketSK
Created October 15, 2019 16:23
Show Gist options
  • Save AniketSK/2dc83d5988765b19d2110d607d302571 to your computer and use it in GitHub Desktop.
Save AniketSK/2dc83d5988765b19d2110d607d302571 to your computer and use it in GitHub Desktop.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{uid}/goals/{document=**} {
allow read, write, create, delete: if request.auth != null && request.auth.uid != null && request.auth.uid == uid;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment