summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/users
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-08 08:26:33 +0200
committermkanat%bugzilla.org <>2008-08-08 08:26:33 +0200
commit50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 (patch)
tree424d04a868fb5fdffbfa2dd65cc8903ece84895f /template/en/default/admin/users
parentaca14df0a0daca1f2eb637d400285e3f14add35e (diff)
downloadbugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.gz
bugzilla-50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1.tar.xz
Bug 442031: Make Bugzilla::User::groups return an arrayref of Bugzilla::Group objects (instead of a hashref of group ids and names).
Diffstat (limited to 'template/en/default/admin/users')
-rw-r--r--template/en/default/admin/users/confirm-delete.html.tmpl4
-rw-r--r--template/en/default/admin/users/userdata.html.tmpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl
index 218775dca..77d6772a6 100644
--- a/template/en/default/admin/users/confirm-delete.html.tmpl
+++ b/template/en/default/admin/users/confirm-delete.html.tmpl
@@ -69,8 +69,8 @@
<td>
[% IF otheruser.groups.size %]
<ul>
- [% FOREACH group = otheruser.groups.keys %]
- <li>[% group FILTER html %]</li>
+ [% FOREACH group = otheruser.groups %]
+ <li>[% group.name FILTER html %]</li>
[% END %]
</ul>
[% ELSE %]
diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl
index feee4c5d6..f23aa1b85 100644
--- a/template/en/default/admin/users/userdata.html.tmpl
+++ b/template/en/default/admin/users/userdata.html.tmpl
@@ -27,7 +27,7 @@
<input size="64" maxlength="255" name="login"
id="login" value="[% otheruser.login FILTER html %]" />
[% IF editform %]
- [% IF !otheruser.groups.bz_sudo_protect %]
+ [% IF !otheruser.in_group('bz_sudo_protect') %]
<br />
<a href="relogin.cgi?action=prepare-sudo&amp;target_login=
[%- otheruser.login FILTER url_quote %]">Impersonate this user</a>