prevent email notification on replies by sandboxed users

This commit is contained in:
Evan Prodromou 2009-11-16 14:18:51 -05:00
parent 2ad4de45e6
commit 05ff8925bf
1 changed files with 4 additions and 0 deletions

View 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);