diff options
author | bugreport%peshkin.net <> | 2002-11-25 04:56:17 +0100 |
---|---|---|
committer | bugreport%peshkin.net <> | 2002-11-25 04:56:17 +0100 |
commit | c64d51111a5ae02d6fc45163a847d0b7e2004548 (patch) | |
tree | fd7a0cb912e4411573faa5305df4d4971a3b6dda /query.cgi | |
parent | e7720dcdd4e332c096a310c53412d3acaacd381e (diff) | |
download | bugzilla-c64d51111a5ae02d6fc45163a847d0b7e2004548.tar.gz bugzilla-c64d51111a5ae02d6fc45163a847d0b7e2004548.tar.xz |
Bug 147275 Rearchitect product groups
Patch by joel
r=bbaetz,justdave
a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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; |