summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorolav%bkor.dhs.org <>2006-11-14 08:32:28 +0100
committerolav%bkor.dhs.org <>2006-11-14 08:32:28 +0100
commit410641ccf4ed887b3988222678704a8c5569002d (patch)
treee698db3e6bb515c2a51359c13a11918a6b83210f /Bugzilla/User.pm
parentf1c83b410cd23c14e74a4a43f64632c050008dd7 (diff)
downloadbugzilla-410641ccf4ed887b3988222678704a8c5569002d.tar.gz
bugzilla-410641ccf4ed887b3988222678704a8c5569002d.tar.xz
Bug 277370: Ability to specify an email address to which notification about all bugs should go
Patch by Guillaume Rousse <guillomovitch@zarb.org> r=bkor a=myk
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm3
1 files changed, 3 insertions, 0 deletions
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;