@edgedev/firebase 1.7.7 → 1.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -791,7 +791,7 @@ service cloud.firestore {
|
|
|
791
791
|
allow read: if readSelf();
|
|
792
792
|
allow create: if false;
|
|
793
793
|
allow update: if false;
|
|
794
|
-
allow delete: if
|
|
794
|
+
allow delete: if readSelf();
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
match /databases/{database}/documents/collection-data/{collectionPath} {
|
|
@@ -966,7 +966,7 @@ service cloud.firestore {
|
|
|
966
966
|
allow list: if canList();
|
|
967
967
|
allow create: if canCreate();
|
|
968
968
|
allow update: if canUpdate();
|
|
969
|
-
|
|
969
|
+
allow delete: if request.auth.uid == resource.data.userId // TODO: if isTemplate is true... can delete... if assign permission
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
match /databases/{database}/documents/{seg1} {
|