From: Evan Prodromou Date: Mon, 16 Nov 2009 19:18:51 +0000 (-0500) Subject: prevent email notification on replies by sandboxed users X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=05ff8925bf2d115bf2c249d6901f7f67b7ac7ba8;p=quix0rs-gnu-social.git prevent email notification on replies by sandboxed users --- diff --git a/lib/mail.php b/lib/mail.php index 94d5dcb121..6e74d18066 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);