From 9042b58f0ceb4896bd99542a3f59a368158bbccc Mon Sep 17 00:00:00 2001 From: "bbaetz%cs.mcgill.ca" <> Date: Tue, 23 Oct 2001 22:44:50 +0000 Subject: Bug 97469 - Assignee/QA/Reporter/CC don't get email on restricted bugs. Also fixes seeing bugs in the buglist (bug 95024), dependancy lists, tooltips, duplicates, and everywhere else I could see which checked group bugs.groupset == 0. Also fxed bug 101560, by clearing BASH_ENV r=myk,justdave --- showdependencytree.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'showdependencytree.cgi') diff --git a/showdependencytree.cgi b/showdependencytree.cgi index 1d6e3dbb2..a6a72eb3f 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -34,7 +34,9 @@ ConnectToDatabase(); quietly_check_login(); -$::usergroupset = $::usergroupset; # More warning suppression silliness. +# More warning suppression silliness. +$::userid = $::userid; +$::usergroupset = $::usergroupset; ###################################################################### # Begin Data/Security Validation @@ -128,10 +130,10 @@ sub DumpKids { my ($bugid, $stat, $milestone) = ("", "", ""); my ($userid, $short_desc) = ("", ""); if (Param('usetargetmilestone')) { - SendSQL("select bug_id, bug_status, target_milestone, assigned_to, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset"); + SendSQL(SelectVisible("select bugs.bug_id, bug_status, target_milestone, assigned_to, short_desc from bugs where bugs.bug_id = $kid", $::userid, $::usergroupset)); ($bugid, $stat, $milestone, $userid, $short_desc) = (FetchSQLData()); } else { - SendSQL("select bug_id, bug_status, assigned_to, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset"); + SendSQL(SelectVisible("select bugs.bug_id, bug_status, assigned_to, short_desc from bugs where bugs.bug_id = $kid", $::userid, $::usergroupset)); ($bugid, $stat, $userid, $short_desc) = (FetchSQLData()); } -- cgit v1.2.3-24-g4f1b