fix rules

This commit is contained in:
mantikoros 2022-01-07 13:47:55 -06:00
parent 1b69a34270
commit b1b371e708

View File

@ -10,7 +10,8 @@ service cloud.firestore {
match /contracts/{contractId} { match /contracts/{contractId} {
allow read; 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; allow delete: if resource.data.creatorId == request.auth.uid;
} }