summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-05-20 07:16:59 +0200
committerByron Jones <glob@mozilla.com>2014-05-20 07:16:59 +0200
commit5929fb98320aa73bbd0b01bbe85a3984e5194a87 (patch)
tree52f67e923a9650535a3c66b0229784fce15ab716 /extensions/BMO
parent9365f5f3c2720e0eaa0fb7ee40a0c5b201287843 (diff)
downloadbugzilla-5929fb98320aa73bbd0b01bbe85a3984e5194a87.tar.gz
bugzilla-5929fb98320aa73bbd0b01bbe85a3984e5194a87.tar.xz
Bug 504461: Allow everyone to make bugs security-sensitive retroactively
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/template/en/default/hook/bug/edit-before_restrict_visibility.html.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/hook/bug/edit-before_restrict_visibility.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-before_restrict_visibility.html.tmpl
new file mode 100644
index 000000000..880ab58f7
--- /dev/null
+++ b/extensions/BMO/template/en/default/hook/bug/edit-before_restrict_visibility.html.tmpl
@@ -0,0 +1,25 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% RETURN IF
+ 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 class="bz_group_visibility_section">
+ <input type="checkbox" name="groups"
+ value="[% bug.product_obj.default_security_group FILTER none %]"
+ id="group_[% bug.product_obj.default_security_group_obj.id FILTER html %]"
+ onchange="if (this.checked) document.getElementById('addselfcc').checked = true"
+ >
+ <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><br>