]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 544434: describecomponents.cgi only lists enterable products.
authorMichael Ching <michaelc@wush.net>
Thu, 17 Nov 2011 21:23:08 +0000 (22:23 +0100)
committerMarc Schumann <wurblzap@gmail.com>
Thu, 17 Nov 2011 21:23:08 +0000 (22:23 +0100)
r=Wurblzap, a=LpSolit

describecomponents.cgi

index 744501bbd054182e0ea1282850bcd0b90913bfc5..ee136128422a1421fda646ba24a79047a08cbb6f 100755 (executable)
@@ -46,7 +46,7 @@ my $product = new Bugzilla::Product({'name' => $product_name});
 
 unless ($product && $user->can_access_product($product->name)) {
     # Products which the user is allowed to see.
-    my @products = @{$user->get_enterable_products};
+    my @products = @{$user->get_accessible_products};
 
     if (scalar(@products) == 0) {
         ThrowUserError("no_products");