Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (19 sloc) 774 Bytes
service cloud.firestore {
match /databases/{database}/documents {
match /posts/{post} {
allow read: if true;
allow create: if request.auth.uid == request.resource.data.createdBy;
allow update, delete: if request.auth.uid == resource.data.createdBy;
}
match /postLikes/{postLike} {
allow read: if true;
allow create: if request.auth.uid == request.resource.data.createdBy;
allow update, delete: if request.auth.uid == resource.data.createdBy;
}
match /subscriptions/{subscription} {
allow read: if request.auth.uid == resource.data.createdBy;
allow create: if request.auth.uid == request.resource.data.createdBy;
allow update, delete: if request.auth.uid == resource.data.createdBy;
}
}
}
You can’t perform that action at this time.