@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.
Files changed (2) hide show
  1. package/README.md +2 -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 false;
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
- allow delete: if false // TODO if isTemplate is true... can delete... otherwise users never deleted just removed from collection paths
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} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {