Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "rules": {
- ".read": "(auth.token.email == 'mybuddy@gmail.com' || auth.token.email == 'anotherfriend@gmail.com')",
- ".write": "(auth.token.email == 'mybuddy@gmail.com' || auth.token.email == 'anotherfriend@gmail.com')"
- }
- }
- service cloud.firestore {
- match /databases/{database}/documents {
- match /{document=**} {
- allow read, write: if isWhiteListedUser();
- }
- }
- function isWhiteListedUser () {
- return request.auth.token.email == 'mybuddy@gmail.com'
- || request.auth.token.email == 'anotherfriend@gmail.com';
- }
- }
Add Comment
Please, Sign In to add comment