diff --git a/packages/core/client/src/acl/ACLProvider.tsx b/packages/core/client/src/acl/ACLProvider.tsx index 798ba81948..e0b907a12f 100644 --- a/packages/core/client/src/acl/ACLProvider.tsx +++ b/packages/core/client/src/acl/ACLProvider.tsx @@ -312,7 +312,10 @@ export const ACLCollectionFieldProvider = (props) => { const { allowAll } = useACLRoleContext(); const { whitelist } = useACLFieldWhitelist(); const [name] = (fieldSchema.name as string).split('.'); - const allowed = !fieldSchema['x-acl-ignore'] && whitelist.length > 0 ? whitelist.includes(name) : true; + const allowed = + !fieldSchema['x-acl-ignore'] && whitelist.length > 0 && fieldSchema?.['x-collection-field'] + ? whitelist.includes(name) + : true; useEffect(() => { if (!allowed) { field.required = false;