From 48d86e4da5d5027564c4947127653df9548f5c4d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 10 Oct 2005 23:37:08 +0000 Subject: [PATCH] r540: Check for bug viewing ability in parse_pcv_select() --- includes/functions_product.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/functions_product.php b/includes/functions_product.php index 73aa002..e372cb9 100644 --- a/includes/functions_product.php +++ b/includes/functions_product.php @@ -214,6 +214,11 @@ function parse_pcv_select($input, $validate = false) } } + if (!can_perform('canviewbugs', $product['productid'])) + { + return false; + } + return $pcv; } } -- 2.22.5