summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mail.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 94d5dcb12..6e74d1806 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -595,6 +595,10 @@ function mail_notify_attn($user, $notice)
$sender = $notice->getProfile();
+ if (!$sender->hasRight(Right::EMAILONREPLY)) {
+ return;
+ }
+
$bestname = $sender->getBestName();
common_init_locale($user->language);