From: bbaetz%student.usyd.edu.au <> Date: Sat, 15 Jun 2002 08:56:14 +0000 (+0000) Subject: Bug 151695 - assignee/qa contact can't access secure bugs X-Git-Tag: bugzilla-2.16~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c223a0c263b193903fad0d95e4fba12dc7e4a4a4;p=thirdparty%2Fbugzilla.git Bug 151695 - assignee/qa contact can't access secure bugs r=myk x2 --- diff --git a/globals.pl b/globals.pl index 73321c7662..8c9f479355 100644 --- a/globals.pl +++ b/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 ";