diff options
author | bbaetz%cs.mcgill.ca <> | 2001-10-23 22:44:50 +0000 |
---|---|---|
committer | bbaetz%cs.mcgill.ca <> | 2001-10-23 22:44:50 +0000 |
commit | 9042b58f0ceb4896bd99542a3f59a368158bbccc (patch) | |
tree | dfa9027e25cd0456fad9697bc4038a12daae63a6 /showdependencytree.cgi | |
parent | 35f74cea13f5d1ce63d56cd643d2f2963bbb90a5 (diff) | |
download | bugs-9042b58f0ceb4896bd99542a3f59a368158bbccc.tar bugs-9042b58f0ceb4896bd99542a3f59a368158bbccc.tar.gz bugs-9042b58f0ceb4896bd99542a3f59a368158bbccc.tar.bz2 bugs-9042b58f0ceb4896bd99542a3f59a368158bbccc.tar.xz bugs-9042b58f0ceb4896bd99542a3f59a368158bbccc.zip |
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
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-x | showdependencytree.cgi | 8 |
1 files changed, 5 insertions, 3 deletions
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()); } |