From: myk%mozilla.org <> Date: Thu, 4 Apr 2002 03:48:05 +0000 (+0000) Subject: Fix for bug 126801: Suppress display of secure products to users who are not authoriz... X-Git-Tag: bugzilla-2.16rc1~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=153a60fc43567d0b79aa6bf1d70e76be12521de1;p=thirdparty%2Fbugzilla.git Fix for bug 126801: Suppress display of secure products to users who are not authorized to access those products. Only matters for installations using the "product groups" feature. Patch by Myk Melez . r=justdave,gerv. --- diff --git a/queryhelp.cgi b/queryhelp.cgi index 9fd5d98574..16345af649 100755 --- a/queryhelp.cgi +++ b/queryhelp.cgi @@ -603,6 +603,7 @@ SendSQL("SELECT product,description FROM products ORDER BY product"); while (MoreSQLData()) { my ($product, $productdesc) = FetchSQLData(); + next if (Param("usebuggroups") && GroupExists($product) && !UserInGroup($product)); push (@products, $product); $line_count++;