From: lpsolit%gmail.com <> Date: Mon, 17 Oct 2005 18:14:07 +0000 (+0000) Subject: Bug 312437: Do not display the "Impersonate this user" link when the user is in the... X-Git-Tag: bugzilla-2.22rc1~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7;p=thirdparty%2Fbugzilla.git Bug 312437: Do not display the "Impersonate this user" link when the user is in the bz_sudo_protect group - Patch by A. Karl Kornel r=jouni a=justdave --- diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl index ab2e9de629..f606bb73d0 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 %]
- Impersonate this user + value="[% otheruser.login FILTER html %]" /> + [% IF !otheruser.groups.bz_sudo_protect %] +
+ Impersonate this user + [% END %] [% END %] [% ELSE %] [% otheruser.login FILTER html %]