silently skip email for subs from sandboxed user
This commit is contained in:
parent
440af7ed7a
commit
e150d920a5
@ -216,7 +216,8 @@ function mail_subscribe_notify($listenee, $listener)
|
||||
|
||||
function mail_subscribe_notify_profile($listenee, $other)
|
||||
{
|
||||
if ($listenee->email && $listenee->emailnotifysub) {
|
||||
if ($other->hasRight(Right::EMAILONSUBSCRIBE) &&
|
||||
$listenee->email && $listenee->emailnotifysub) {
|
||||
|
||||
// use the recipient's localization
|
||||
common_init_locale($listenee->language);
|
||||
|
Loading…
Reference in New Issue
Block a user