Commit 6eaec6f8 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 312437: Do not display the "Impersonate this user" link when the user is in…

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
parent 969f5865
......@@ -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 %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment