]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 380416: template/en/default/admin/users/userdata.html.tmpl should honor can_chang...
authorghendricks%novell.com <>
Tue, 15 May 2007 21:28:16 +0000 (21:28 +0000)
committerghendricks%novell.com <>
Tue, 15 May 2007 21:28:16 +0000 (21:28 +0000)
Patch by Vance Baarda <vrb@novell.com>
r=mkanat, a=mkanat

template/en/default/admin/users/userdata.html.tmpl

index e7afe66bbe84a771ad14ce6ba3d56ee0261bebe7..befc87ed0ba064796b946f3fe450741e25d690ac 100644 (file)
     [% END %]
   </td>
 </tr>
+
+[%# XXX This condition (can_change_password) will cause a problem
+  # if we ever have a login system that can create accounts through
+  # createaccount.cgi but can't change passwords.
+  #%]
+  
 [% IF editusers %]
+  [% IF user.authorizer.can_change_password %]
   <tr>
     <th><label for="password">Password:</label></th>
     <td>
@@ -63,6 +70,7 @@
       [% END %]
     </td>
   </tr>
+  [% END %]
   <tr>
     <th><label for="disable_mail">[% terms.Bug %]mail Disabled:</label></th>
     <td>