From 8aa65fed5aead2dc563d17904531b2dd87247498 Mon Sep 17 00:00:00 2001 From: Katherine Date: Mon, 18 Nov 2024 20:52:09 +0800 Subject: [PATCH] fix: field permission check not affected by association field context (#5672) * fix: field permission check not affected by association field context * fix: bug --- packages/core/client/src/acl/ACLProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/acl/ACLProvider.tsx b/packages/core/client/src/acl/ACLProvider.tsx index c7266ef8ee4..ee49faa4dba 100644 --- a/packages/core/client/src/acl/ACLProvider.tsx +++ b/packages/core/client/src/acl/ACLProvider.tsx @@ -230,7 +230,7 @@ export const ACLCollectionProvider = (props) => { actionPath = `${resoureName}:list`; } if (!actionPath) { - return props.children; + return {props.children}; } const params = parseAction(actionPath, { schema }); if (!params) {