summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-10 16:44:12 +0200
committerbugreport%peshkin.net <>2004-07-10 16:44:12 +0200
commita95006629e25bdce2016c4544318df380c91f0fd (patch)
tree86ca0fec86b70c0bfc86dabbb381da7c5c1faaa6 /globals.pl
parent0066e681a05fb471d9468119e755a00e40dd19f5 (diff)
downloadbugzilla-a95006629e25bdce2016c4544318df380c91f0fd.tar.gz
bugzilla-a95006629e25bdce2016c4544318df380c91f0fd.tar.xz
Bug 234855: Show only products enterable by current user in edit-multiple
patch by kiko r=joel,justdave a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl11
1 files changed, 11 insertions, 0 deletions
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