fix: acl field whitelist
This commit is contained in:
parent
b88adc5c11
commit
733e1ff60b
@ -244,8 +244,8 @@ export const useACLFieldWhitelist = () => {
|
||||
if (!fieldSchema['x-collection-field']) {
|
||||
return true;
|
||||
}
|
||||
const [, ...keys] = fieldSchema['x-collection-field'].split('.');
|
||||
return whitelist?.includes(keys.join('.'));
|
||||
const [key1, key2] = fieldSchema['x-collection-field'].split('.');
|
||||
return whitelist?.includes(key2 || key1);
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user