diff options
author | lpsolit%gmail.com <> | 2005-10-17 18:14:07 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-17 18:14:07 +0000 |
commit | 6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7 (patch) | |
tree | 244b9cf8543f2472d0b65ed86b9ae0e8e7ad5d2a /template/en/default/admin/users/userdata.html.tmpl | |
parent | 969f586517c4021e784a4a4d09d7421fc90a1016 (diff) | |
download | bugs-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.tar bugs-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.tar.gz bugs-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.tar.bz2 bugs-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.tar.xz bugs-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.zip |
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 <karl@kornel.name> r=jouni a=justdave
Diffstat (limited to 'template/en/default/admin/users/userdata.html.tmpl')
-rw-r--r-- | template/en/default/admin/users/userdata.html.tmpl | 9 |
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&target_login= + [%- otheruser.login FILTER html %]">Impersonate this user</a> + [% END %] [% END %] [% ELSE %] [% otheruser.login FILTER html %] |