Skip to content

Commit 0ff34af

Browse files
committed
feat: improve sandboxed plugins handling
1 parent 37aded5 commit 0ff34af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/general/extensions/ExtensionLoader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ onMounted(async () => {
8888
ExtensionsManager.runInSandbox({
8989
id,
9090
code,
91-
// TODO handle permissions
91+
// TODO: handle pre-defined permissions
9292
"globals": {},
9393
});
9494
}

src/constants/permissions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ export const Permissions = {
1515
"Write": "write-external-storage",
1616
},
1717
"InternalStorage": {
18-
"Read" : "read-internal-storage",
19-
"Write": "write-internal-storage",
18+
"Read" : "read-internal-storage",
19+
"Write" : "write-internal-storage",
20+
"Logging": "write-to-log-file",
2021
},
2122
} as const;
2223
export const PermissionsList: Array<PermissionType> = Object

0 commit comments

Comments
 (0)