summaryrefslogtreecommitdiffstats
path: root/colchange.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-08-08 08:40:42 +0200
committerlpsolit%gmail.com <>2008-08-08 08:40:42 +0200
commit0547231eae6ebcbb033b6c1af706b537956e0624 (patch)
tree915c0ed65034305236e4af6594fe6325a1f41b9f /colchange.cgi
parent50dbcc4e7a38642856cbeeef88d2b3a4a884b5e1 (diff)
downloadbugzilla-0547231eae6ebcbb033b6c1af706b537956e0624.tar.gz
bugzilla-0547231eae6ebcbb033b6c1af706b537956e0624.tar.xz
Bug 449700: Remove useless code from colchange.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-xcolchange.cgi4
1 files changed, 1 insertions, 3 deletions
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;