Hide search field in navbar if user does not have the permission to view parts.

This commit is contained in:
Jan Böhmer 2022-11-06 01:11:08 +01:00
parent 06ae136bae
commit 8a3d765157

View file

@ -26,8 +26,9 @@
{% endif %}
</ul>
{% include "_navbar_search.html.twig" %}
{% if is_granted('@parts.read') %}
{% include "_navbar_search.html.twig" %}
{% endif %}
<ul class="navbar-nav ms-3" id="login-content">