From a83a8e8152382a25a4323a90ca39b02438d1378a Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Fri, 26 Jan 2024 20:58:40 +0800 Subject: [PATCH] fix: acl configugre --- .../PermissionManager/schemas/roleCollections.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts index 98e0cb8ad7..fd292052fd 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/PermissionManager/schemas/roleCollections.ts @@ -4,7 +4,7 @@ import { useRoleResourceValues } from './useRoleResourceValues'; import { useSaveRoleResourceAction } from './useSaveRoleResourceAction'; const collection = { - name: 'remoteCollections', + name: 'dataSourcesCollections', targetKey: 'name', filterTargetKey: 'name', fields: [ @@ -78,13 +78,13 @@ export const roleCollectionsSchema: ISchema = { sourceKey: 'name', targetKey: 'name', }, - resourceName: 'roles.remoteCollections', + resourceName: 'roles.dataSourcesCollections', request: { - resource: 'roles.remoteCollections', + resource: 'roles.dataSourcesCollections', action: 'list', params: { pageSize: 20, - filter: { hidden: { $isFalsy: true }, connectionName:"{{connectionName}}" }, + filter: { hidden: { $isFalsy: true }, connectionName: '{{connectionName}}' }, sort: ['sort'], appends: ['fields'], },