fix: documents submenu always hidden for manager users
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user