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
+1 -1
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) {