fix rules
This commit is contained in:
parent
1b69a34270
commit
b1b371e708
|
@ -10,7 +10,8 @@ service cloud.firestore {
|
|||
|
||||
match /contracts/{contractId} {
|
||||
allow read;
|
||||
allow update: if resource.data.creatorId == request.auth.uid && request.resource.data.keys().hasOnly(["description"]);
|
||||
allow update: if resource.data.creatorId == request.auth.uid && request.resource.data.diff(resource.data).affectedKeys()
|
||||
.hasOnly(['description']);
|
||||
allow delete: if resource.data.creatorId == request.auth.uid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user