summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2017-01-03 15:45:51 +0100
committerDavid Lawrence <dkl@mozilla.com>2017-01-03 15:45:51 +0100
commit550a798284238af70960c8b4ab4fe276f40a9cbb (patch)
treed0f55f0e59bfef95d56407b50921fb06c1f464a9 /extensions/BugModal/web
parentcad5c15d6610dde0e389736eb82be73921a2f705 (diff)
downloadbugzilla-550a798284238af70960c8b4ab4fe276f40a9cbb.tar.gz
bugzilla-550a798284238af70960c8b4ab4fe276f40a9cbb.tar.xz
Bug 1262465 - ensure unprivileged users can mark a bug as security sensitive
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r--extensions/BugModal/web/bug_modal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index a2e7be0c7..9bbe8b20c 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -1119,6 +1119,11 @@ $(function() {
$('#add-cc').focus();
});
+ // Add user to cc list if they mark the bug as security sensitive
+ $('.restrict_sensitive')
+ .change(function(event) {
+ $('#addselfcc').val($('#addselfcc').val() == 0 ? 1 : 0);
+ });
// product change --> load components, versions, milestones, groups
$('#product').data('default', $('#product').val());