From df153527a79e34ec0dc64ba4efe55f9451bfc36d Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 17 Mar 2024 23:30:32 +0800 Subject: [PATCH] fix(acl): unable to associate users --- packages/plugins/@nocobase/plugin-acl/src/server/server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts b/packages/plugins/@nocobase/plugin-acl/src/server/server.ts index bdb13b93c..98d33fa19 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/server.ts @@ -10,10 +10,10 @@ import { checkAction } from './actions/role-check'; import { roleCollectionsResource } from './actions/role-collections'; import { setDefaultRole } from './actions/user-setDefaultRole'; import { setCurrentRole } from './middlewares/setCurrentRole'; +import { createWithACLMetaMiddleware } from './middlewares/with-acl-meta'; import { RoleModel } from './model/RoleModel'; import { RoleResourceActionModel } from './model/RoleResourceActionModel'; import { RoleResourceModel } from './model/RoleResourceModel'; -import { createWithACLMetaMiddleware } from './middlewares/with-acl-meta'; export interface AssociationFieldAction { associationActions: string[]; @@ -179,6 +179,7 @@ export class PluginACL extends Plugin { 'roles.resources:*', 'uiSchemas:getProperties', 'roles.menuUiSchemas:*', + 'roles.users:*', ], });