diff options
author | Byron Jones <glob@mozilla.com> | 2015-08-14 06:30:45 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-08-14 06:30:45 +0200 |
commit | 99331e920d4faf3995880faf30d256ace57840c4 (patch) | |
tree | b774b5dacb96cccf614462fe2ed6892599073178 /extensions/SecureMail/template/en | |
parent | 6f148395ae6e5a5b56ea6cd2393e269fb90855e0 (diff) | |
download | bugzilla-99331e920d4faf3995880faf30d256ace57840c4.tar.gz bugzilla-99331e920d4faf3995880faf30d256ace57840c4.tar.xz |
Bug 1194584 - "has cert" and "member of secure group" shouldn't be visible when creating a user
Diffstat (limited to 'extensions/SecureMail/template/en')
-rw-r--r-- | extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl b/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl index 37b3277c9..e5f1c8277 100644 --- a/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl +++ b/extensions/SecureMail/template/en/default/hook/admin/users/userdata-end.html.tmpl @@ -6,24 +6,28 @@ # defined by the Mozilla Public License, v. 2.0. #%] +[% RETURN UNLESS otheruser.id %] + <tr> <th>Has Secure Mail Key/Cert:</th> <td> - [% IF user.public_key %]Yes[% ELSE %]No[% END %] + [% otheruser.public_key ? "Yes" : "No" %] </td> </tr> <tr> <th>Member of Secure Mail Group:</th> <td> - [% securemail_member = 0 %] - [% FOREACH group = user.groups %] - [% IF group.secure_mail %] - [% securemail_member = 1 %] - [% LAST %] - [% END %] - [% END %] - [% IF securemail_member %]Yes[% ELSE %]No[% END %] + [% + securemail_member = 0; + FOREACH group IN otheruser.groups; + IF group.securemail; + securemail_member = 1; + LAST; + END; + END; + securemail_member ? "Yes" : "No"; + %] </td> </tr> |