From 550a798284238af70960c8b4ab4fe276f40a9cbb Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 3 Jan 2017 14:45:51 +0000 Subject: Bug 1262465 - ensure unprivileged users can mark a bug as security sensitive --- .../template/en/default/bug_modal/edit.html.tmpl | 3 ++- .../template/en/default/bug_modal/groups.html.tmpl | 16 +++++++++++++++- extensions/BugModal/web/bug_modal.js | 5 +++++ 3 files changed, 22 insertions(+), 2 deletions(-) (limited to 'extensions/BugModal') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 5740dabd8..a1e039405 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -144,6 +144,7 @@ + [% PROCESS bug_modal/navigate.html.tmpl %] [% END %] @@ -1046,7 +1047,7 @@ collapsed = 1 subtitle = bug.groups_in.size ? bug.groups_in.pluck("description").join(", ") : "public" hide_on_view = bug.groups_in.size == 0 - hide_on_edit = bug.groups.size == 0 + hide_on_edit = bug.groups.size == 0 && !bug.product_obj.default_security_group %] [% INCLUDE bug_modal/groups.html.tmpl %] [% END %] diff --git a/extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl index 8315f2355..d60d1ef67 100644 --- a/extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl @@ -43,11 +43,25 @@ [% END %] [% ELSE %] - This [% terms.bug %] is publicaly visible. + This [% terms.bug %] is publicly visible. [% END %]