diff options
author | David Lawrence <dkl@mozilla.com> | 2017-01-03 15:45:51 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2017-01-03 15:45:51 +0100 |
commit | 550a798284238af70960c8b4ab4fe276f40a9cbb (patch) | |
tree | d0f55f0e59bfef95d56407b50921fb06c1f464a9 /extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl | |
parent | cad5c15d6610dde0e389736eb82be73921a2f705 (diff) | |
download | bugzilla-550a798284238af70960c8b4ab4fe276f40a9cbb.tar.gz bugzilla-550a798284238af70960c8b4ab4fe276f40a9cbb.tar.xz |
Bug 1262465 - ensure unprivileged users can mark a bug as security sensitive
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl | 16 |
1 files changed, 15 insertions, 1 deletions
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 @@ </ul> [% END %] [% ELSE %] - This [% terms.bug %] is publicaly visible. + This [% terms.bug %] is publicly visible. [% END %] </div> <div class="groups edit-show" style="display:none"> + [% UNLESS bug.in_group(bug.product_obj.default_security_group_obj) + || user.in_group(bug.product_obj.default_security_group) + || (user.id != bug.reporter.id && !user.in_group('editbugs')) %] + <div> + <input type="checkbox" name="groups"I class="restrict_sensitive" + value="[% bug.product_obj.default_security_group FILTER none %]" + id="group_[% bug.product_obj.default_security_group_obj.id FILTER html %]"> + <label for="group_[% bug.product_obj.default_security_group_obj.id FILTER html %]" + title="This [% terms.bug %] is security sensitive and should be hidden from the public until it is resolved"> + Restrict access to this [% terms.bug %] + </label> + </div> + [% END %] + [% emitted_description = 0 %] [% FOREACH group IN bug.groups %] [% IF NOT emitted_description %] |