]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
prevent email notification on replies by sandboxed users
authorEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 19:18:51 +0000 (14:18 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 16 Nov 2009 19:18:51 +0000 (14:18 -0500)
lib/mail.php

index 94d5dcb121053fe74828cc3a6d2f36476f3b93e6..6e74d18066443097732930922e877fb490686747 100644 (file)
@@ -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);