We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99481ac commit 3931ce9Copy full SHA for 3931ce9
app/templates/pages/user.html.twig
@@ -28,11 +28,13 @@
28
</button>
29
<ul class="dropdown-menu box-tool-menu">
30
{% 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>
+ {% 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>
36
+ </li>
37
+ {% endif %}
38
{% if 'password' not in tools.hidden %}
39
<li>
40
<a href="#" class="js-user-password" data-user_name="{{user.user_name}}">
0 commit comments