From 410641ccf4ed887b3988222678704a8c5569002d Mon Sep 17 00:00:00 2001 From: "olav%bkor.dhs.org" <> Date: Tue, 14 Nov 2006 07:32:28 +0000 Subject: Bug 277370: Ability to specify an email address to which notification about all bugs should go Patch by Guillaume Rousse r=bkor a=myk --- Bugzilla/User.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ff61034dd..3c18f1908 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1460,6 +1460,9 @@ sub wants_mail { # No mail if there are no events return 0 if !scalar(@$events); + + # Skip DB query if relationship is explicit + return 1 if $relationship == REL_GLOBAL_WATCHER; my $dbh = Bugzilla->dbh; -- cgit v1.2.3-24-g4f1b