summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/hook/bug/edit-before_restrict_visibility.html.tmpl
blob: 880ab58f7637b5cf119ec26a1b3816c2a70d3e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>