prevent email notification on replies by sandboxed users
This commit is contained in:
parent
2ad4de45e6
commit
05ff8925bf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user