From 6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Oct 2005 18:14:07 +0000 Subject: 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 --- template/en/default/admin/users/userdata.html.tmpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'template/en/default/admin') 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 %]
- Impersonate this user + value="[% otheruser.login FILTER html %]" /> + [% IF !otheruser.groups.bz_sudo_protect %] +
+ Impersonate this user + [% END %] [% END %] [% ELSE %] [% otheruser.login FILTER html %] -- cgit v1.2.3-24-g4f1b