mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 05:38:54 +01:00
Hide search field in navbar if user does not have the permission to view parts.
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user