From a47e205ed03a59f7702ac875f551ce6a9639fba2 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Sun, 22 May 2016 20:59:26 +0000 Subject: Bug 1262468 - add reporter_accessible checkbox --- .../template/en/default/bug_modal/groups.html.tmpl | 45 +++++++++++++++++++--- 1 file changed, 39 insertions(+), 6 deletions(-) (limited to 'extensions/BugModal') 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 b03db1e49..5821372c1 100644 --- a/extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/groups.html.tmpl @@ -27,15 +27,21 @@
[% IF in_a_group %] -
- Only users in all of the following groups can view this [% terms.bug %]: -
+ Only users in all of the following groups can view this [% terms.bug %]: + + [% IF bug.reporter_accessible || bug.cclist_accessible %] + Users in the roles below can always view this [% terms.bug %]: + + [% END %] [% ELSE %] This [% terms.bug %] is publicaly visible. [% END %] @@ -46,9 +52,7 @@ [% FOREACH group IN bug.groups %] [% IF NOT emitted_description %] [% emitted_description = 1 %] -
- Only users in all of the selected groups can view this [% terms.bug %]: -
+ Only users in all of the selected groups can view this [% terms.bug %]: [% END %] [% IF group.ingroup %] @@ -65,4 +69,33 @@
[% END %] + + [% IF in_a_group %] + Users in the roles selected below can always view this [% terms.bug %]: +
+ [% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %] + [% IF user_can_edit_accessible %] + + [% END %] + + +
+
+ [% user_can_edit_accessible = bug.check_can_change_field("cclist_accessible", 0, 1) %] + [% IF user_can_edit_accessible %] + + [% END %] + + +
+ The assignee [% IF (Param('useqacontact')) %]and QA contact[% END %] + can always see [% terms.abug %], and this section does not take effect + unless the [% terms.bug %] is restricted to at least one group. + [% END %] -- cgit v1.2.3-24-g4f1b