diff --git a/packages/plugins/@nocobase/plugin-public-forms/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-public-forms/src/server/plugin.ts index cc25718148..243e9669dd 100644 --- a/packages/plugins/@nocobase/plugin-public-forms/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-public-forms/src/server/plugin.ts @@ -175,6 +175,11 @@ export class PluginPublicFormsServer extends Plugin { }; async load() { + this.app.acl.registerSnippet({ + name: `pm.${this.name}`, + actions: ['publicForms:*'], + }); + this.app.acl.allow('publicForms', 'getMeta', 'public'); this.app.resourceManager.registerActionHandlers({ 'publicForms:getMeta': this.getPublicFormsMeta,