From 56848ce823a61dcb86be3b823ce9e61877e71902 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 26 Feb 2008 06:09:32 +0000 Subject: Bug 419191: CC'ed users not being in the group a bug is restricted to cannot do any change - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/bug/edit.html.tmpl | 50 +++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 22 deletions(-) (limited to 'template/en') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 1cdf5e798..3516500f5 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -650,7 +650,7 @@ [%############################################################################%] [% BLOCK section_restrict_visibility %] - [% IF bug.groups.size > 0 %] + [% RETURN UNLESS bug.groups.size %] + [% IF inagroup %] [% END %]
@@ -662,19 +662,20 @@ [% FOREACH group = bug.groups %] [% SET inallgroups = 0 IF NOT group.ingroup %] [% SET inagroup = 1 IF group.ison %] - - [% IF NOT group.mandatory %] - [% IF NOT emitted_description %] - [% emitted_description = 1 %] -
- Only users in all of the selected groups can view this [% terms.bug %]: -
- - (Unchecking all boxes makes this a more public [% terms.bug %].) - -
- [% END %] - + + [% NEXT IF group.mandatory %] + + [% IF NOT emitted_description %] + [% emitted_description = 1 %] +
+ Only users in all of the selected groups can view this [% terms.bug %]: +
+ + (Unchecking all boxes makes this a more public [% terms.bug %].) + +
+ [% END %] + [% IF group.ingroup %] [% END %] @@ -684,18 +685,18 @@ [% " disabled=\"disabled\"" IF NOT group.ingroup %]>
- [% END %] [% END %] - + [% IF NOT inallgroups %] Only members of a group can change the visibility of [% terms.abug %] for that group. -
+
[% END %]
@@ -716,19 +717,25 @@
- + [% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %] + [% IF user_can_edit_accessible %] + + [% END %] + [% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]>
- + [% user_can_edit_accessible = bug.check_can_change_field("cclist_accessible", 0, 1) %] + [% IF user_can_edit_accessible %] + + [% END %] + [% " disabled=\"disabled\"" UNLESS user_can_edit_accessible %]>
@@ -736,7 +743,6 @@
- [% END %] [% END %] [%############################################################################%] -- cgit v1.2.3-24-g4f1b