]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 312437: Do not display the "Impersonate this user" link when the user is in the...
authorlpsolit%gmail.com <>
Mon, 17 Oct 2005 18:14:07 +0000 (18:14 +0000)
committerlpsolit%gmail.com <>
Mon, 17 Oct 2005 18:14:07 +0000 (18:14 +0000)
template/en/default/admin/users/userdata.html.tmpl

index ab2e9de62927dbaa3993b02e48bc1dbbebf05eea..f606bb73d0bed247a97f3840768b376d814b82ed 100644 (file)
              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 %]