@edgedev/firebase 2.1.37 → 2.1.39
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/edgeFirebase.ts +4 -1
- package/package.json +1 -1
- package/src/firestore.rules +8 -0
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
|
-
|
|
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
package/src/firestore.rules
CHANGED
|
@@ -31,6 +31,14 @@ service cloud.firestore {
|
|
|
31
31
|
allow update: if false;
|
|
32
32
|
allow delete: if false;
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
match /databases/{database}/documents/system/{event} {
|
|
37
|
+
allow read: if false;
|
|
38
|
+
allow create: if false;
|
|
39
|
+
allow update: if false;
|
|
40
|
+
allow delete: if false;
|
|
41
|
+
}
|
|
34
42
|
|
|
35
43
|
match /databases/{database}/documents/rule-helpers/{helper} {
|
|
36
44
|
allow read: if false;
|