fix(plugin-workflow): fix trigger workflow acl (#4522)

This commit is contained in:
Junyi 2024-05-29 16:42:32 +08:00 committed by GitHub
parent 64414249dd
commit bde1d1ee61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,