@edgedev/firebase 1.9.10 → 1.9.11

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/edgeFirebase.ts +6 -0
  2. package/package.json +2 -2
package/edgeFirebase.ts CHANGED
@@ -814,6 +814,7 @@ export const EdgeFirebase = class {
814
814
  if (role) {
815
815
  ruleCheck.permissionCheckPath = permissionCheck;
816
816
  ruleCheck.permissionType = "roles";
817
+
817
818
  }
818
819
  const specialPermission = this.user.specialPermissions.find(
819
820
  (r) => r.collectionPath === permissionCheck
@@ -822,6 +823,11 @@ export const EdgeFirebase = class {
822
823
  ruleCheck.permissionCheckPath = permissionCheck;
823
824
  ruleCheck.permissionType = "specialPermissions";
824
825
  }
826
+ if (ruleCheck.permissionType !== "") {
827
+ if (this.permissionCheckOnly(action, permissionCheck)) {
828
+ break;
829
+ }
830
+ }
825
831
  index--;
826
832
  }
827
833
  const rootRole = this.user.roles.find((r) => r.collectionPath === "-");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.9.10",
3
+ "version": "1.9.11",
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": {
@@ -37,4 +37,4 @@
37
37
  "firebase": "^9.12.1",
38
38
  "vue": "^3.0.0"
39
39
  }
40
- }
40
+ }