summaryrefslogtreecommitdiffstats
path: root/colchange.cgi
diff options
context:
space:
mode:
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;