mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Hide search field in navbar if user does not have the permission to view parts.
This commit is contained in:
parent
06ae136bae
commit
8a3d765157
1 changed files with 3 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue