Do not show job menu entry if user does not have necessary permission

This commit is contained in:
Julie Lenaerts 2025-05-22 15:25:11 +02:00
parent dc44c46667
commit 1e5d676aa5

View File

@ -52,7 +52,6 @@ class MenuBuilder implements LocalMenuBuilderInterface
->setExtras([ ->setExtras([
'order' => 51, 'order' => 51,
]); ]);
}
$menu->addChild('Emploi', [ $menu->addChild('Emploi', [
'route' => 'chill_job_report_index', 'route' => 'chill_job_report_index',
@ -64,6 +63,7 @@ class MenuBuilder implements LocalMenuBuilderInterface
'order' => 52, 'order' => 52,
]); ]);
} }
}
public static function getMenuIds(): array public static function getMenuIds(): array
{ {