mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
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;
|
std::set<User::Ptr> allNotifiedUsers;
|
||||||
BOOST_FOREACH(const User::Ptr& user, allUsers) {
|
BOOST_FOREACH(const User::Ptr& user, allUsers) {
|
||||||
if (!CheckNotificationUserFilters(type, user, force))
|
if (!user->GetEnableNotifications() || !CheckNotificationUserFilters(type, user, force))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Log(LogInformation, "Notification", "Sending notification for user '" + user->GetName() + "'");
|
Log(LogInformation, "Notification", "Sending notification for user '" + user->GetName() + "'");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user