aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-09-23 00:14:48 +0000
committerbugreport%peshkin.net <>2002-09-23 00:14:48 +0000
commit65d3dc0ec33fd76229dc02536a74ccac5408876b (patch)
treebcacbb27e99c73f9548e92408fadb2e369f0543b /showdependencytree.cgi
parentFix for bug 63601: Recommend filename when downloading attachments (except in... (diff)
downloadbugzilla-65d3dc0ec33fd76229dc02536a74ccac5408876b.tar.gz
bugzilla-65d3dc0ec33fd76229dc02536a74ccac5408876b.tar.bz2
bugzilla-65d3dc0ec33fd76229dc02536a74ccac5408876b.zip
bug 157756 - Groups_20020716_Branch Tracking : > 55 groups now supported
r=bbaetz, gerv
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi23
1 files changed, 11 insertions, 12 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index 7917f00fe..e2e9d52b0 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -39,7 +39,6 @@ quietly_check_login();
# More warning suppression silliness.
$::userid = $::userid;
-$::usergroupset = $::usergroupset;
################################################################################
# Data/Security Validation #
@@ -144,7 +143,9 @@ sub GetBug {
# and returns it to the calling code.
my ($id) = @_;
- SendSQL(SelectVisible("SELECT 1,
+ my $bug = {};
+ if (CanSeeBug($id, $::userid)) {
+ SendSQL("SELECT 1,
bug_status,
short_desc,
$milestone_column,
@@ -152,18 +153,16 @@ sub GetBug {
assignee.login_name
FROM bugs, profiles AS assignee
WHERE bugs.bug_id = $id
- AND bugs.assigned_to = assignee.userid",
- $::userid,
- $::usergroupset));
+ AND bugs.assigned_to = assignee.userid");
- my $bug = {};
- ($bug->{'exists'},
- $bug->{'status'},
- $bug->{'summary'},
- $bug->{'milestone'},
- $bug->{'assignee_id'},
- $bug->{'assignee_email'}) = FetchSQLData();
+ ($bug->{'exists'},
+ $bug->{'status'},
+ $bug->{'summary'},
+ $bug->{'milestone'},
+ $bug->{'assignee_id'},
+ $bug->{'assignee_email'}) = FetchSQLData();
+ }
$bug->{'open'} = IsOpenedState($bug->{'status'});
$bug->{'dependencies'} = [];