diff options
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; |