[bugzilla-gnome-org-extensions] Don't expose private product names on trace.html.tmpl.



commit 38eacb382d7f90490ba41f1dd11da189eb4bb1db
Author: Max Kanat-Alexander <mkanat everythingsolved com>
Date:   Thu Aug 6 04:31:13 2009 -0500

    Don't expose private product names on trace.html.tmpl.

 lib/TraceParser/Hooks.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/TraceParser/Hooks.pm b/lib/TraceParser/Hooks.pm
index 80f149c..9c2332d 100644
--- a/lib/TraceParser/Hooks.pm
+++ b/lib/TraceParser/Hooks.pm
@@ -149,6 +149,7 @@ sub _page_trace {
             my $grouped = $by_product{$type};
             foreach my $trace (@$traces) {
                 my $product = $trace->bug->product;
+                next if !Bugzilla->user->can_see_product($product);
                 $grouped->{$product} ||= [];
                 push(@{ $grouped->{$product} }, $trace);
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]