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', [
'route' => 'app_administrative_document_index',
'linkAttributes' => [
'title' => 'Dokumentenübersicht',
],
$documentMenu = $menu->addChild('Dokumente', [
'extras' => [
'icon' => 'document',
],
]);
$documentMenu->addChild('Übersicht', [
'route' => 'app_administrative_document_index',
'linkAttributes' => [
'title' => 'Übersicht',
],
]);
$documentMenu->addChild('akzeptierte Honorarnoten', [
'route' => 'app_administrative_document_accepted',
'routeParameters' => [
@@ -86,7 +86,7 @@
{{ teamer.communication.email }}
</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') }}
{% else %}
-
@@ -122,4 +122,4 @@
{{ knp_pagination_render(pagination) }}
</div>
</div>
{% endblock %}
{% endblock %}