From 96103f504c088d0eb0c4950c6dcfeb3fb7934203 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 8 May 2013 15:06:28 +0800 Subject: Bug 869261: In the bug entry form the default security group should be displayed to let user know which group will be set --- .../en/default/hook/bug/create/create-form.html.tmpl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'extensions/BMO') diff --git a/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl b/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl index 3fdec2990..6f88888f0 100644 --- a/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl @@ -1,11 +1,19 @@ Security: - [% PROCESS group_checkbox - name = product.default_security_group - desc = "Many users could be harmed by this security problem: " _ - "it should be kept hidden from the public until it is resolved." - %] + [% IF user.in_group(product.default_security_group) %] + [% PROCESS group_checkbox + name = product.default_security_group + desc = "Restrict access to this " _ terms.bug _ " to members of " _ + "the \"" _ product.default_security_group_obj.description _ "\" group." + %] + [% ELSE %] + [% PROCESS group_checkbox + name = product.default_security_group + desc = "Many users could be harmed by this security problem: " _ + "it should be kept hidden from the public until it is resolved." + %] + [% END %] [% IF user.in_group('partner-confidential-visible') %] [% PROCESS group_checkbox name = 'partner-confidential' -- cgit v1.2.3-24-g4f1b