summaryrefslogtreecommitdiffstats
path: root/showdependencytree.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-08-28 02:31:21 +0200
committerterry%mozilla.org <>1999-08-28 02:31:21 +0200
commitd9f7f83f030e3dc3ec23812d3786291dbddda3ef (patch)
tree19d89fe347b6ecba4e3bc211dab298946277f3ad /showdependencytree.cgi
parent72346057125ba53b1604e80245c0814b4d6956cb (diff)
downloadbugzilla-d9f7f83f030e3dc3ec23812d3786291dbddda3ef.tar.gz
bugzilla-d9f7f83f030e3dc3ec23812d3786291dbddda3ef.tar.xz
Don't even mention bugs that the user does not have permission to see.
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi9
1 files 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 "<ul>\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 "<li>";