diff options
author | Evan Prodromou <evan@status.net> | 2009-11-16 14:18:51 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-16 14:18:51 -0500 |
commit | 05ff8925bf2d115bf2c249d6901f7f67b7ac7ba8 (patch) | |
tree | d494b4c9de000325cd096b33d6a604a0093aed36 /lib/mail.php | |
parent | 2ad4de45e6b0f7edc629fb08346d978039f1c8a3 (diff) |
prevent email notification on replies by sandboxed users
Diffstat (limited to 'lib/mail.php')
-rw-r--r-- | lib/mail.php | 4 |
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); |