mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 22:27:40 +00:00
fix: registration ACL snippet for public form (#5505)
This commit is contained in:
parent
8541da4218
commit
e6a90fda7c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user