Skip to content

Commit

Permalink
Add missing hidden check
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Feb 23, 2024
1 parent 99481ac commit 3931ce9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/templates/pages/user.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@
</button>
<ul class="dropdown-menu box-tool-menu">
{% block tools %}
<li>
<a href="#" class="js-user-edit" data-user_name="{{user.user_name}}">
<i class="fas fa-edit fa-fw"></i> {{translate('EDIT')}}
</a>
</li>
{% if 'edit' not in tools.hidden %}
<li>
<a href="#" class="js-user-edit" data-user_name="{{user.user_name}}">
<i class="fas fa-edit fa-fw"></i> {{translate('EDIT')}}
</a>
</li>
{% endif %}
{% if 'password' not in tools.hidden %}
<li>
<a href="#" class="js-user-password" data-user_name="{{user.user_name}}">
Expand Down

0 comments on commit 3931ce9

Please sign in to comment.