@@ -51,12 +51,15 @@ export function SgcWorkspaceShell({ children }: { children: ReactNode }) {
|
||||
procurementNavigation(
|
||||
context?.permissions ?? [],
|
||||
page.props.payablesAvailable === true,
|
||||
undefined,
|
||||
page.props.orderCancellationAvailable === true,
|
||||
).flatMap((group) => group.entries.map((entry) => entry.id)),
|
||||
);
|
||||
const groups = procurementNavigation(
|
||||
access?.active ? access.permissions : (user?.purchasing_role ?? ''),
|
||||
page.props.payablesAvailable === true,
|
||||
publicNavigation?.paths,
|
||||
page.props.orderCancellationAvailable === true,
|
||||
)
|
||||
.map((group) => ({
|
||||
...group,
|
||||
|
||||
Reference in New Issue
Block a user