fix: documents submenu always hidden for manager users

This commit is contained in:
Björn Fromme
2025-03-24 08:32:33 +01:00
parent f2b60570a9
commit f5af12e2f3
2 changed files with 9 additions and 7 deletions
+7 -5
View File
@@ -32,15 +32,17 @@ class ManagerMenuBuilder extends AbstractMenuBuilder
], ],
], ],
]); ]);
$documentMenu = $menu->addChild('Dokumentenübersicht', [ $documentMenu = $menu->addChild('Dokumente', [
'route' => 'app_administrative_document_index',
'linkAttributes' => [
'title' => 'Dokumentenübersicht',
],
'extras' => [ 'extras' => [
'icon' => 'document', 'icon' => 'document',
], ],
]); ]);
$documentMenu->addChild('Übersicht', [
'route' => 'app_administrative_document_index',
'linkAttributes' => [
'title' => 'Übersicht',
],
]);
$documentMenu->addChild('akzeptierte Honorarnoten', [ $documentMenu->addChild('akzeptierte Honorarnoten', [
'route' => 'app_administrative_document_accepted', 'route' => 'app_administrative_document_accepted',
'routeParameters' => [ 'routeParameters' => [
@@ -86,7 +86,7 @@
{{ teamer.communication.email }} {{ teamer.communication.email }}
</td> </td>
<td> <td>
{% if teamer.user.lastLoginAt is not null %} {% if teamer.user is not null and teamer.user.lastLoginAt is not null %}
{{ teamer.user.lastLoginAt | date('d.m.Y') }} {{ teamer.user.lastLoginAt | date('d.m.Y') }}
{% else %} {% else %}
- -