summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-17 20:14:07 +0200
committerlpsolit%gmail.com <>2005-10-17 20:14:07 +0200
commit6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7 (patch)
tree244b9cf8543f2472d0b65ed86b9ae0e8e7ad5d2a
parent969f586517c4021e784a4a4d09d7421fc90a1016 (diff)
downloadbugzilla-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.tar.gz
bugzilla-6eaec6f81eb6dae4793c7a15d8f1b953244ca1f7.tar.xz
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
-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 %]