summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/admin/users/userdata.html.tmpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl
index ab2e9de62..f606bb73d 100644
--- a/template/en/default/admin/users/userdata.html.tmpl
+++ b/template/en/default/admin/users/userdata.html.tmpl
@@ -29,9 +29,12 @@
id="login" value="[% otheruser.login FILTER html %]" />
[% IF editform %]
<input type="hidden" name="loginold"
- value="[% otheruser.login FILTER html %]" /><br />
- <a href="relogin.cgi?action=sudo&target_login=
- [%- otheruser.login FILTER html %]">Impersonate this user</a>
+ value="[% otheruser.login FILTER html %]" />
+ [% IF !otheruser.groups.bz_sudo_protect %]
+ <br />
+ <a href="relogin.cgi?action=sudo&amp;target_login=
+ [%- otheruser.login FILTER html %]">Impersonate this user</a>
+ [% END %]
[% END %]
[% ELSE %]
[% otheruser.login FILTER html %]