fix: acl allow plugins:getPinned

This commit is contained in:
chenos 2022-05-17 23:39:09 +08:00
parent 146fa15fef
commit 0a766b51e0

View File

@ -1,4 +1,3 @@
import { skip } from '@nocobase/acl';
import { Plugin } from '@nocobase/server'; import { Plugin } from '@nocobase/server';
import send from 'koa-send'; import send from 'koa-send';
import serve from 'koa-static'; import serve from 'koa-static';
@ -19,12 +18,8 @@ export class ClientPlugin extends Plugin {
} }
async load() { async load() {
this.app.acl.use( this.app.acl.allow('app', 'getLang');
skip({ this.app.acl.allow('plugins', 'getPinned', 'loggedIn');
resourceName: 'app',
actionName: 'getLang',
}),
);
this.app.resource({ this.app.resource({
name: 'app', name: 'app',
actions: { actions: {