]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 151695 - assignee/qa contact can't access secure bugs
authorbbaetz%student.usyd.edu.au <>
Sat, 15 Jun 2002 08:52:59 +0000 (08:52 +0000)
committerbbaetz%student.usyd.edu.au <>
Sat, 15 Jun 2002 08:52:59 +0000 (08:52 +0000)
r=myk x2

globals.pl

index 99af6ffa420b765c2fbb48089d178125e20438d1..4f93820ffb94ebc29b1465c72b306cc77efd44b8 100644 (file)
@@ -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 ";