From: bugreport%peshkin.net <> Date: Wed, 2 Oct 2002 10:06:06 +0000 (+0000) Subject: Bug 172045 can't see restricted bugs if cc set X-Git-Tag: bugzilla-2.17.1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52aac68c4e1538bd169fdb66a343ab6f7cf1e455;p=thirdparty%2Fbugzilla.git Bug 172045 can't see restricted bugs if cc set r=daa,bbaetz --- diff --git a/globals.pl b/globals.pl index 0a524bcea8..6055493157 100644 --- a/globals.pl +++ b/globals.pl @@ -647,7 +647,7 @@ sub CanSeeBug { my $query = "SELECT bugs.bug_id, reporter, assigned_to, qa_contact," . " reporter_accessible, cclist_accessible," . " cc.who IS NOT NULL," . - " COUNT(bug_group_map.group_id) as cntbugingroups," . + " COUNT(DISTINCT(bug_group_map.group_id)) as cntbugingroups," . " COUNT(DISTINCT(user_group_map.group_id)) as cntuseringroups" . " FROM bugs" . " LEFT JOIN cc ON bugs.bug_id = cc.bug_id" .