@edgedev/firebase 1.9.22 → 1.9.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.9.22",
3
+ "version": "1.9.23",
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": {
@@ -231,6 +231,12 @@ service cloud.firestore {
231
231
  let skipPaths = ["collection-data", "users", "staged-users", "events", "rule-helpers"];
232
232
  let ruleHelper = get(/databases/$(database)/documents/rule-helpers/$(request.auth.uid)).data;
233
233
  return !(collectionPath in skipPaths) &&
234
+ !(permissionCheck == "write" &&
235
+ (
236
+ ("stripeCustomerId" in request.resource.data && (!("stripeCustomerId" in resource.data) || resource.data.stripeCustomerId != request.resource.data.stripeCustomerId)) ||
237
+ ("stripeSubscription" in request.resource.data && (!("stripeSubscription" in resource.data) || resource.data.stripeSubscription != request.resource.data.stripeSubscription))
238
+ )
239
+ ) &&
234
240
  request.auth != null &&
235
241
  collectionPath in ruleHelper &&
236
242
  "permissionCheckPath" in ruleHelper[collectionPath] &&