wip: functionality for new role 'management'

This commit is contained in:
Björn Fromme committed 2024-02-14 10:42:01 +01:00
1 parent f80e600310
commit e95310c3a1
50 files changed
+350 -129

No files matched your search

+16
View File
@@ -47,6 +47,22 @@ abstract class AbstractMenuBuilder
}
}
protected function addManagerItem(ItemInterface $menu): void
{
if ($this->security->isGranted('ROLE_MANAGER')) {
$this->addDivider($menu);
$menu->addChild('zum Managementbereich', [
'route' => 'app_manager_index',
'linkAttributes' => [
'title' => 'zum Managementbereich',
],
'extras' => [
'icon' => 'user',
],
]);
}
}
protected function addTeamerItem(ItemInterface $menu): void
{
if ($this->security->isGranted('ROLE_TEAMER')) {