Commit d9f7f83f authored by terry%mozilla.org's avatar terry%mozilla.org

Don't even mention bugs that the user does not have permission to see.

parent 72346057
......@@ -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>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment