rules: allow contract deletion by creator
This commit is contained in:
parent
22894cb44e
commit
3d780be70a
|
@ -10,6 +10,7 @@ service cloud.firestore {
|
||||||
|
|
||||||
match /contracts/{contractId} {
|
match /contracts/{contractId} {
|
||||||
allow read;
|
allow read;
|
||||||
|
allow delete: if resource.data.creatorId == request.auth.uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
match /contracts/{contractId}/bets/{betId} {
|
match /contracts/{contractId}/bets/{betId} {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user