From ab85deae64b7677aa0a27cad5928816595ec920c Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 9 Jan 2023 18:11:12 +0800 Subject: [PATCH] fix(acl): logged in users are allowed to view map configuration --- packages/plugins/map/src/server/plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugins/map/src/server/plugin.ts b/packages/plugins/map/src/server/plugin.ts index d0956b327..857251ac6 100644 --- a/packages/plugins/map/src/server/plugin.ts +++ b/packages/plugins/map/src/server/plugin.ts @@ -33,8 +33,10 @@ export class MapPlugin extends Plugin { this.app.acl.registerSnippet({ name: `pm.${this.name}.configuration`, - actions: ['map-configuration:*'], + actions: ['map-configuration:set'], }); + + this.app.acl.allow('map-configuration', 'get', 'loggedIn'); } async install(options?: InstallOptions) {}