mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +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 %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
{% if is_granted('@parts.read') %}
|
||||||
{% include "_navbar_search.html.twig" %}
|
{% include "_navbar_search.html.twig" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<ul class="navbar-nav ms-3" id="login-content">
|
<ul class="navbar-nav ms-3" id="login-content">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue