From 0ea609e0a88a01634b2182197d57ac690a2d4695 Mon Sep 17 00:00:00 2001 From: Rain <958414905@qq.com> Date: Sat, 26 Aug 2023 14:05:11 +0800 Subject: [PATCH] fix(theme-editor): only list action allows to use and must be logged in --- packages/plugins/theme-editor/src/server/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/theme-editor/src/server/plugin.ts b/packages/plugins/theme-editor/src/server/plugin.ts index 53a4154a4..8338316be 100644 --- a/packages/plugins/theme-editor/src/server/plugin.ts +++ b/packages/plugins/theme-editor/src/server/plugin.ts @@ -28,7 +28,7 @@ export class ThemeEditorPlugin extends Plugin { }, ], }); - this.app.acl.allow('themeConfig', '*'); + this.app.acl.allow('themeConfig', 'list', 'loggedIn'); } async install(options?: InstallOptions) {