@edgedev/firebase 2.1.37 → 2.1.38

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 +4 -1
  2. package/package.json +1 -1
package/edgeFirebase.ts CHANGED
@@ -2105,7 +2105,10 @@ export const EdgeFirebase = class {
2105
2105
  };
2106
2106
 
2107
2107
  public deleteFile = async (filePath: string): Promise<actionResponse> => {
2108
- const hasDeletePermission = await this.permissionCheck("write", filePath);
2108
+ let hasDeletePermission = await this.permissionCheck("write", filePath);
2109
+ if (filePath.substring(0, 6) === 'public') {
2110
+ hasDeletePermission = true;
2111
+ }
2109
2112
  if (!hasDeletePermission) {
2110
2113
  return this.sendResponse({
2111
2114
  success: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "2.1.37",
3
+ "version": "2.1.38",
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": {