From e6a90fda7c37e43ff3187f5131de65796e871d44 Mon Sep 17 00:00:00 2001 From: Katherine Date: Thu, 24 Oct 2024 16:49:01 +0800 Subject: [PATCH] fix: registration ACL snippet for public form (#5505) --- .../@nocobase/plugin-public-forms/src/server/plugin.ts | 5 +++++ 1 file changed, 5 insertions(+) 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,