mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 08:42:59 -04:00
Don't send notifications for users who have enable_notifications = false
fixes #6671
This commit is contained in:
parent
f19cc514b9
commit
a5936d8eab
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
|
|||
|
||||
std::set<User::Ptr> allNotifiedUsers;
|
||||
BOOST_FOREACH(const User::Ptr& user, allUsers) {
|
||||
if (!CheckNotificationUserFilters(type, user, force))
|
||||
if (!user->GetEnableNotifications() || !CheckNotificationUserFilters(type, user, force))
|
||||
continue;
|
||||
|
||||
Log(LogInformation, "Notification", "Sending notification for user '" + user->GetName() + "'");
|
||||
|
|
|
|||
Loading…
Reference in a new issue