summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 89c5574e3..5386e70ca 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1302,7 +1302,7 @@ sub clear_product_cache {
sub can_see_product {
my ($self, $product_name) = @_;
- return any { $_->name cmp $product_name } @{$self->get_selectable_products};
+ return any { $_->name eq $product_name } @{$self->get_selectable_products};
}
sub get_selectable_products {