mirror of https://github.com/Icinga/icinga2.git
Don't send notifications for users who have enable_notifications = false
fixes #6671
This commit is contained in:
parent
f19cc514b9
commit
a5936d8eab
|
@ -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 New Issue