fix(client): filter menu item schema by permissions

This commit is contained in:
chenos 2022-05-25 12:09:41 +08:00
parent 55e6460b0e
commit 0b8f3f8bd6

View File

@ -37,6 +37,9 @@ const filterByACL = (schema, options) => {
if (element['x-uid'] && !allowMenuItemIds.includes(element['x-uid'])) {
delete s.properties[key];
}
if (element['x-uid']) {
filterSchema(element);
}
}
}
};