diff --git a/webtools/bugzilla/checksetup.pl b/webtools/bugzilla/checksetup.pl
index d572c2bf3d50..c3b719c4caea 100755
--- a/webtools/bugzilla/checksetup.pl
+++ b/webtools/bugzilla/checksetup.pl
@@ -4441,6 +4441,12 @@ add_setting ("zoom_textareas", {"on" => 1, "off" => 2 }, "on" );
# 2005-10-21 LpSolit@gmail.com -- Bug 313020
add_setting('per_bug_queries', {'on' => 1, 'off' => 2}, 'on');
+# 2006-05-01 olav@bkor.dhs.org -- Bug 7710
+add_setting('state_addselfcc', {'always' => 1,
+ 'never' => 2,
+ 'cc_unless_role' => '3'},
+ 'cc_unless_role');
+
###########################################################################
# Create Administrator --ADMIN--
###########################################################################
diff --git a/webtools/bugzilla/template/en/default/bug/edit.html.tmpl b/webtools/bugzilla/template/en/default/bug/edit.html.tmpl
index c2bd1b50b988..51f4223f3798 100644
--- a/webtools/bugzilla/template/en/default/bug/edit.html.tmpl
+++ b/webtools/bugzilla/template/en/default/bug/edit.html.tmpl
@@ -573,8 +573,18 @@
%]
[% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
+ [% has_role = bug.user.isreporter
+ || bug.assigned_to.id == user.id
+ || (Param('useqacontact')
+ && bug.qa_contact
+ && bug.qa_contact.id == user.id) %]
+
-
+
[% END %]
diff --git a/webtools/bugzilla/template/en/default/global/setting-descs.none.tmpl b/webtools/bugzilla/template/en/default/global/setting-descs.none.tmpl
index a0dbeb1a380d..6962d9ea697a 100644
--- a/webtools/bugzilla/template/en/default/global/setting-descs.none.tmpl
+++ b/webtools/bugzilla/template/en/default/global/setting-descs.none.tmpl
@@ -34,5 +34,9 @@
"next_bug" => "Show next $terms.bug in my list",
"same_bug" => "Show the updated $terms.bug",
"nothing" => "Do Nothing",
+ "state_addselfcc" => "Automatically add me to the CC list of bugs I change",
+ "always" => "Always",
+ "never" => "Never",
+ "cc_unless_role" => "Only if I have no role on them",
}
%]