From 0547231eae6ebcbb033b6c1af706b537956e0624 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 8 Aug 2008 06:40:42 +0000 Subject: Bug 449700: Remove useless code from colchange.cgi - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- colchange.cgi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'colchange.cgi') diff --git a/colchange.cgi b/colchange.cgi index b2d33de7e..01af4baba 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -102,7 +102,6 @@ if (defined $cgi->param('rememberedquery')) { } } my $list = join(" ", @collist); - my $urlbase = Bugzilla->params->{"urlbase"}; if ($list) { # Only set the cookie if this is not a saved search. @@ -182,8 +181,7 @@ if (defined $cgi->param('query_based_on')) { my $searches = Bugzilla->user->queries; my ($search) = grep($_->name eq $cgi->param('query_based_on'), @$searches); - # Only allow users to edit their own queries. - if ($search && $search->user->id == Bugzilla->user->id) { + if ($search) { $vars->{'saved_search'} = $search; $vars->{'buffer'} = "cmdtype=runnamed&namedcmd=".$search->name; -- cgit v1.2.3-24-g4f1b