Revert "check id on update (#393)"

This reverts commit c2f993ddf2.
This commit is contained in:
James Grugett 2022-06-02 10:42:05 -05:00
parent 311b39ffe9
commit c40f2904f0

View File

@ -45,8 +45,7 @@ service cloud.firestore {
match /contracts/{contractId} {
allow read;
allow update: if request.resource.data.diff(resource.data).affectedKeys()
.hasOnly(['description', 'closeTime', 'tags', 'lowercaseTags'])
&& resource.data.id == request.auth.uid;
.hasOnly(['description', 'closeTime', 'tags', 'lowercaseTags']);
allow update: if isAdmin();
}