fix(acl): logged in users are allowed to view map configuration

This commit is contained in:
chenos 2023-01-09 18:11:12 +08:00
parent dd157e2fd0
commit ab85deae64

View File

@ -33,8 +33,10 @@ export class MapPlugin extends Plugin {
this.app.acl.registerSnippet({ this.app.acl.registerSnippet({
name: `pm.${this.name}.configuration`, name: `pm.${this.name}.configuration`,
actions: ['map-configuration:*'], actions: ['map-configuration:set'],
}); });
this.app.acl.allow('map-configuration', 'get', 'loggedIn');
} }
async install(options?: InstallOptions) {} async install(options?: InstallOptions) {}