From a95006629e25bdce2016c4544318df380c91f0fd Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Sat, 10 Jul 2004 14:44:12 +0000 Subject: Bug 234855: Show only products enterable by current user in edit-multiple patch by kiko r=joel,justdave a=justdave --- globals.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index a2172a998..6632833ab 100644 --- a/globals.pl +++ b/globals.pl @@ -516,6 +516,17 @@ sub CanEnterProduct { return ($ret); } +sub GetEnterableProducts { + my @products; + # XXX rewrite into pure SQL instead of relying on legal_products? + foreach my $p (@::legal_product) { + if (CanEnterProduct($p)) { + push @products, $p; + } + } + return (@products); +} + # # This function returns an alphabetical list of product names to which # the user can enter bugs. If the $by_id parameter is true, also retrieves IDs -- cgit v1.2.3-24-g4f1b