diff --git a/notifications/inc/class.notifications.inc.php b/notifications/inc/class.notifications.inc.php index 8d5f434f0d..e3781d87b2 100644 --- a/notifications/inc/class.notifications.inc.php +++ b/notifications/inc/class.notifications.inc.php @@ -1,6 +1,6 @@ accounts->read($receiver->account_id); //error_log(__METHOD__.__LINE__." fetched data for User:".array2string($userData['account_lid']).'#'.$userData['account_type'].'#'.$userData['account_status'].'#'.$GLOBALS['egw']->accounts->is_expired($userData).'#'); - if ($userData && $userData['account_type'] === 'u' && + if ($userData && $userData['account_type'] === 'u' && ($userData['account_status'] != 'A' || $GLOBALS['egw']->accounts->is_expired($userData))) { //error_log(__METHOD__.__LINE__." skipped notification for User with Data:".array2string($userData));