fix: acl allow plugins:getPinned
This commit is contained in:
parent
146fa15fef
commit
0a766b51e0
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user