From c64d51111a5ae02d6fc45163a847d0b7e2004548 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Mon, 25 Nov 2002 03:56:17 +0000 Subject: Bug 147275 Rearchitect product groups Patch by joel r=bbaetz,justdave a=justdave --- query.cgi | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index 0d9c37235..680ed0557 100755 --- a/query.cgi +++ b/query.cgi @@ -191,19 +191,14 @@ if ($default{'chfieldto'}->[0] eq "") { GetVersionTable(); -# if using usebuggroups, then we don't want people to see products they don't -# have access to. Remove them from the list. +# if using groups for entry, then we don't want people to see products they +# don't have access to. Remove them from the list. my @products = (); my %component_set; my %version_set; my %milestone_set; -foreach my $p (@::legal_product) { - # If we're using bug groups to restrict entry on products, and - # this product has a bug group, and the user is not in that - # group, we don't want to include that product in this list. - next if (Param("usebuggroups") && GroupExists($p) && !UserInGroup($p)); - +foreach my $p (GetEnterableProducts()) { # We build up boolean hashes in the "-set" hashes for each of these things # before making a list because there may be duplicates names across products. push @products, $p; -- cgit v1.2.3-24-g4f1b