silently skip email for subs from sandboxed user

This commit is contained in:
Evan Prodromou 2009-11-16 14:11:14 -05:00
parent 440af7ed7a
commit e150d920a5

View File

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