fix: field permission check not affected by association field context (#5672)

* fix: field permission check not affected by association field context

* fix: bug
This commit is contained in:
Katherine 2024-11-18 20:52:09 +08:00 committed by GitHub
parent 4723d7c0e2
commit 8aa65fed5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,7 +230,7 @@ export const ACLCollectionProvider = (props) => {
actionPath = `${resoureName}:list`;
}
if (!actionPath) {
return props.children;
return <ACLActionParamsContext.Provider value={{}}>{props.children}</ACLActionParamsContext.Provider>;
}
const params = parseAction(actionPath, { schema });
if (!params) {