diff --git a/packages/plugins/client/src/plugin.ts b/packages/plugins/client/src/plugin.ts index d827ea51a..6063c03e9 100644 --- a/packages/plugins/client/src/plugin.ts +++ b/packages/plugins/client/src/plugin.ts @@ -1,4 +1,3 @@ -import { skip } from '@nocobase/acl'; import { Plugin } from '@nocobase/server'; import send from 'koa-send'; import serve from 'koa-static'; @@ -19,12 +18,8 @@ export class ClientPlugin extends Plugin { } async load() { - this.app.acl.use( - skip({ - resourceName: 'app', - actionName: 'getLang', - }), - ); + this.app.acl.allow('app', 'getLang'); + this.app.acl.allow('plugins', 'getPinned', 'loggedIn'); this.app.resource({ name: 'app', actions: {