From 79a6df8101370fb2fe529b5a08a019083134e953 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 10 Oct 2005 23:40:50 +0000 Subject: [PATCH] r541: Hidden bug permissions in search.php --- search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search.php b/search.php index 4808447..a3f647d 100644 --- a/search.php +++ b/search.php @@ -242,9 +242,9 @@ if ($_REQUEST['do'] == 'process') LEFT JOIN " . TABLE_PREFIX . "bugvaluefill AS bugfieldvalue ON (bug.bugid = bugfieldvalue.bugid) WHERE bug.bugid <> 0 - " . implode("\n\t\t", $querybuild) . ((!can_perform('canviewhidden')) ? " - AND !bug.hidden - AND !comment.hidden" : "") . " + AND bug.productid IN (" . fetch_on_bits('canviewbugs') . ") + AND (!bug.hidden OR (bug.hidden AND bug.productid IN (" . fetch_on_bits('canviewhidden') . "))) + " . implode("\n\t\t", $querybuild) . " GROUP BY bug.bugid $sortclause"; -- 2.43.5