diff --git a/fe-piattaforma/src/components/HeaderMenu/headerMenu.tsx b/fe-piattaforma/src/components/HeaderMenu/headerMenu.tsx index 7a956a90b..704c1c6c9 100644 --- a/fe-piattaforma/src/components/HeaderMenu/headerMenu.tsx +++ b/fe-piattaforma/src/components/HeaderMenu/headerMenu.tsx @@ -117,6 +117,10 @@ const HeaderMenu: React.FC = (props) => { ); }; +const filteredMenuRoutes = menuRoutes.filter(({ visible = [] }) => hasUserPermission(visible)).some(route => route.path === '/area-dati') + ? menuRoutes.filter(route => route.path !== '/area-dati/report-dati') + : menuRoutes; + return (