mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix #3322: Disabled users still receive emails notifications
This commit is contained in:
parent
b045210f53
commit
8e6c50e10d
@ -6,6 +6,7 @@ HumHub Change Log
|
||||
- Fix: Richtext loses mark state
|
||||
- Fix: New comment scroll behavior not used in edit comment
|
||||
- Chng: Updated `humhub-prosemirror-richtext` to v1.0.12
|
||||
- Fix #3322: Disabled users still receive emails notifications
|
||||
|
||||
|
||||
1.3.5 (October 10, 2018)
|
||||
|
@ -64,6 +64,7 @@ class NotificationManager
|
||||
public function sendBulk(BaseNotification $notification, $userQuery)
|
||||
{
|
||||
$processed = [];
|
||||
/** @var User $user */
|
||||
foreach ($userQuery->each() as $user) {
|
||||
|
||||
if ($notification->suppressSendToOriginator && $notification->isOriginator($user)) {
|
||||
@ -74,6 +75,10 @@ class NotificationManager
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($user->status != User::STATUS_ENABLED) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($notification->saveRecord($user)) {
|
||||
foreach ($this->getTargets($user) as $target) {
|
||||
$target->send($notification, $user);
|
||||
|
Loading…
x
Reference in New Issue
Block a user