fix: registration ACL snippet for public form (#5505)

This commit is contained in:
Katherine 2024-10-24 16:49:01 +08:00 committed by GitHub
parent 8541da4218
commit e6a90fda7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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