From 804336689c430040f478520ea6655260cbd6735d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 10 May 2011 13:47:46 +0800 Subject: Bug 28849: Block users from CCing other users if they do not have editbugs privs r=LpSolit, a=LpSolit --- template/en/default/bug/edit.html.tmpl | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'template/en/default/bug') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 0aa5f80af..f64d589c9 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -830,16 +830,26 @@ [% END %] [% IF bug.cc %] - [% FOREACH c = bug.cc %] [% END %] - [% IF user.id %] + [% IF user.id && !bug.user.canedit %] + + [% END %] + [% IF user.id AND (bug.user.canedit OR bug.cc.contains(user.login)) %]
- [%%] +
[% END %] [% END %] -- cgit v1.2.3-24-g4f1b