prohibited changing other peoples markets
This commit is contained in:
parent
4a1c8d52b7
commit
6f9b707643
|
@ -45,7 +45,8 @@ service cloud.firestore {
|
||||||
match /contracts/{contractId} {
|
match /contracts/{contractId} {
|
||||||
allow read;
|
allow read;
|
||||||
allow update: if request.resource.data.diff(resource.data).affectedKeys()
|
allow update: if request.resource.data.diff(resource.data).affectedKeys()
|
||||||
.hasOnly(['description', 'closeTime', 'tags', 'lowercaseTags', 'autoResolutionTime']);
|
.hasOnly(['description', 'closeTime', 'tags', 'lowercaseTags', 'autoResolutionTime'])
|
||||||
|
&& resource.data.id == request.auth.uid;
|
||||||
allow update: if isAdmin();
|
allow update: if isAdmin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user