mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
f53c2d836b
@ -30,6 +30,8 @@ export class PluginFieldChinaRegionServer extends Plugin {
|
||||
|
||||
this.app.acl.allow('chinaRegions', 'list', 'loggedIn');
|
||||
|
||||
this.app.acl.appendStrategyResource('chinaRegions');
|
||||
|
||||
this.app.resourceManager.use(async function blockChinaRegionList(ctx, next) {
|
||||
const { resourceName, actionName } = ctx.action.params;
|
||||
|
||||
|
@ -256,6 +256,8 @@ export class PluginFileManagerServer extends Plugin {
|
||||
this.app.acl.allow('attachments', ['upload', 'create'], 'loggedIn');
|
||||
this.app.acl.allow('storages', 'getBasicInfo', 'loggedIn');
|
||||
|
||||
this.app.acl.appendStrategyResource('attachments');
|
||||
|
||||
// this.app.resourcer.use(uploadMiddleware);
|
||||
// this.app.resourcer.use(createAction);
|
||||
// this.app.resourcer.registerActionHandler('upload', uploadAction);
|
||||
|
Loading…
x
Reference in New Issue
Block a user