From 31f73de2dc4cd01b1d7a28646bc6088d2adc2ea7 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Sat, 15 Jun 2002 01:52:59 +0000 Subject: [PATCH] Bug 151695 - assignee/qa contact can't access secure bugs r=myk x2 --- webtools/bugzilla/globals.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webtools/bugzilla/globals.pl b/webtools/bugzilla/globals.pl index 99af6ffa420b..4f93820ffb94 100644 --- a/webtools/bugzilla/globals.pl +++ b/webtools/bugzilla/globals.pl @@ -800,8 +800,12 @@ sub SelectVisible { # cause all rows to be returned! We work arround this by adding an not isnull # test to the JOINed cc table. See http://lists.mysql.com/cgi-ez/ezmlm-cgi?9:mss:11417 # Its needed, even though it shouldn't be - $replace .= "OR (bugs.reporter_accessible = 1 AND bugs.reporter = $userid) - OR (bugs.cclist_accessible = 1 AND selectVisible_cc.who = $userid AND not isnull(selectVisible_cc.who))"; + $replace .= "OR (bugs.reporter_accessible = 1 AND bugs.reporter = $userid)" . + " OR (bugs.cclist_accessible = 1 AND selectVisible_cc.who = $userid AND not isnull(selectVisible_cc.who))" . + " OR (bugs.assigned_to = $userid)"; + if (Param("useqacontact")) { + $replace .= " OR (bugs.qa_contact = $userid)"; + } } $replace .= ") AND ";