From bde1d1ee6109848cbd85f89571f92f5d81c5a5c9 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 29 May 2024 16:42:32 +0800 Subject: [PATCH] fix(plugin-workflow): fix trigger workflow acl (#4522) --- .../plugins/@nocobase/plugin-workflow/src/server/Plugin.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts index 2a638225c1..9250e6868f 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/server/Plugin.ts @@ -233,9 +233,7 @@ export default class PluginWorkflowServer extends Plugin { actions: ['workflows:list'], }); - this.app.acl.allow('workflows', ['trigger'], 'loggedIn'); - - await this.importCollections(path.resolve(__dirname, 'collections')); + this.app.acl.allow('*', ['trigger'], 'loggedIn'); this.db.addMigrations({ namespace: this.name,