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

View File

@ -595,6 +595,10 @@ function mail_notify_attn($user, $notice)
$sender = $notice->getProfile(); $sender = $notice->getProfile();
if (!$sender->hasRight(Right::EMAILONREPLY)) {
return;
}
$bestname = $sender->getBestName(); $bestname = $sender->getBestName();
common_init_locale($user->language); common_init_locale($user->language);