wip: functionality for new role 'management'
This commit is contained in:
1 parent
f80e600310
commit
e95310c3a1
50 files changed
+350
-129
No files matched your search
@@ -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')) {
|
||||
|
||||
Reference in new issue
Block a user