Skip to content

Commit 3931ce9

Browse files
committed
Add missing hidden check
1 parent 99481ac commit 3931ce9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/templates/pages/user.html.twig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
</button>
2929
<ul class="dropdown-menu box-tool-menu">
3030
{% block tools %}
31-
<li>
32-
<a href="#" class="js-user-edit" data-user_name="{{user.user_name}}">
33-
<i class="fas fa-edit fa-fw"></i> {{translate('EDIT')}}
34-
</a>
35-
</li>
31+
{% if 'edit' not in tools.hidden %}
32+
<li>
33+
<a href="#" class="js-user-edit" data-user_name="{{user.user_name}}">
34+
<i class="fas fa-edit fa-fw"></i> {{translate('EDIT')}}
35+
</a>
36+
</li>
37+
{% endif %}
3638
{% if 'password' not in tools.hidden %}
3739
<li>
3840
<a href="#" class="js-user-password" data-user_name="{{user.user_name}}">

0 commit comments

Comments
 (0)