Don't send notifications for users who have enable_notifications = false

fixes #6671
This commit is contained in:
Gunnar Beutner 2014-07-09 08:56:16 +02:00
parent f19cc514b9
commit a5936d8eab
1 changed files with 1 additions and 1 deletions

View File

@ -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() + "'");