Files
wgenerator/firestore.rules
2020-05-13 19:35:21 +02:00

28 lines
611 B
Plaintext

rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /user/{user} {
allow read: if resource.id == request.auth.uid;
allow write: if resource.id == request.auth.uid;
}
match /songs/{song} {
allow read: if true;
allow write: if true;
}
match /songs/{song}/files/{file} {
allow read: if true;
allow write: if true;
}
match /shows/{show} {
allow read: if true;
allow write: if true;
}
match /shows/{show}/songs/{song} {
allow read: if true;
allow write: if true;
}
}
}