From: lpsolit%gmail.com <> Date: Tue, 26 Feb 2008 06:09:32 +0000 (+0000) Subject: Bug 419191: CC'ed users not being in the group a bug is restricted to cannot do any... X-Git-Tag: bugzilla-3.1.3~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56848ce823a61dcb86be3b823ce9e61877e71902;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 1cdf5e7988..3516500f54 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 %] [%############################################################################%]