fix(client): filter menu item schema by permissions
This commit is contained in:
parent
55e6460b0e
commit
0b8f3f8bd6
@ -37,6 +37,9 @@ const filterByACL = (schema, options) => {
|
|||||||
if (element['x-uid'] && !allowMenuItemIds.includes(element['x-uid'])) {
|
if (element['x-uid'] && !allowMenuItemIds.includes(element['x-uid'])) {
|
||||||
delete s.properties[key];
|
delete s.properties[key];
|
||||||
}
|
}
|
||||||
|
if (element['x-uid']) {
|
||||||
|
filterSchema(element);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user