From d9f7f83f030e3dc3ec23812d3786291dbddda3ef Mon Sep 17 00:00:00 2001
From: "terry%mozilla.org" <>
Date: Sat, 28 Aug 1999 00:31:21 +0000
Subject: Don't even mention bugs that the user does not have permission to
see.
---
showdependencytree.cgi | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index f457d67a3..36694ba6e 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -57,10 +57,11 @@ sub DumpKids {
if (@list) {
print "
\n";
foreach my $kid (@list) {
- SendSQL("select bug_status, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset");
- my ($stat, $short_desc) = (FetchSQLData());
- $stat = "NEW" if !defined $stat;
- $short_desc = "" if !defined $short_desc;
+ SendSQL("select bug_id, bug_status, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset");
+ my ($bugid, $stat, $short_desc) = (FetchSQLData());
+ if (!defined $bugid) {
+ next;
+ }
my $opened = ($stat eq "NEW" || $stat eq "ASSIGNED" ||
$stat eq "REOPENED");
print "- ";
--
cgit v1.2.3-24-g4f1b