Index: mozilla/webtools/bugzilla/buglist.cgi =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v retrieving revision 1.358 diff -pu -r1.358 mozilla/webtools/bugzilla/buglist.cgi --- mozilla/webtools/bugzilla/buglist.cgi +++ mozilla/webtools/bugzilla/buglist.cgi @@ -1009,6 +1009,7 @@ my $bugstatuses = {}; my @bugidlist; my @bugs; # the list of records +my $caneditbugs = 0; while (my @row = $buglist_sth->fetchrow_array()) { my $bug = {}; # a record @@ -1041,6 +1042,7 @@ while (my @row = $buglist_sth->fetchrow_ # Record the assignee, product, and status in the big hashes of those things. $bugowners->{$bug->{'assigned_to'}} = 1 if $bug->{'assigned_to'}; $bugproducts->{$bug->{'product'}} = 1 if $bug->{'product'}; + ++$caneditbugs if Bugzilla->user->in_group('editbugs', $bug->{'product'}); $bugstatuses->{$bug->{'bug_status'}} = 1 if $bug->{'bug_status'}; $bug->{'secure_mode'} = undef; @@ -1107,7 +1109,7 @@ $vars->{'urlquerypart'} = $params->canon 'cmdtype', 'query_based_on'); $vars->{'order'} = $order; -$vars->{'caneditbugs'} = Bugzilla->user->in_group('editbugs'); +$vars->{'caneditbugs'} = $caneditbugs; my @bugowners = keys %$bugowners; if (scalar(@bugowners) > 1 && Bugzilla->user->in_group('editbugs')) { Index: mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl,v retrieving revision 1.54 diff -pu -r1.54 mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl --- mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl +++ mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl @@ -185,7 +185,7 @@ [% urlquerypart FILTER html %]&query_based_on= [% defaultsavename OR searchname FILTER url_quote %]">Change Columns | - [% IF bugs.size > 1 && caneditbugs && !dotweak %] + [% IF caneditbugs > 1 && !dotweak %] Change Several [% terms.Bugs %] at Once Index: mozilla/webtools/bugzilla/template/en/default/reports/create-chart.html.tmpl =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/template/en/default/reports/create-chart.html.tmpl,v retrieving revision 1.15 diff -pu -r1.15 mozilla/webtools/bugzilla/template/en/default/reports/create-chart.html.tmpl --- mozilla/webtools/bugzilla/template/en/default/reports/create-chart.html.tmpl +++ mozilla/webtools/bugzilla/template/en/default/reports/create-chart.html.tmpl @@ -260,7 +260,7 @@ function subcatSelected() { [% END %] -[% IF user.in_group('editbugs') %] +[% IF user.in_group('editbugs') || user.groups.editbugs %]

Create New Data Set

[% END %]