aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-04-19 14:07:18 +0200
committerGitHub <noreply@github.com>2021-04-19 14:07:18 +0200
commitebe8301404332667f95e230bdb2a0f154778059d (patch)
tree106264bb7bf50613b4664812db3441641d4c8ca1
parent665220c4fb903792fd8aea81db1c3e5d85a9b036 (diff)
parenta9ca3c8b0165d949f63cf3a16a99b62b72a6606d (diff)
Merge pull request #5860 from cvium/fix-notification-user-list
Fix notification disabled users list
-rw-r--r--MediaBrowser.Model/Notifications/NotificationOptions.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Notifications/NotificationOptions.cs b/MediaBrowser.Model/Notifications/NotificationOptions.cs
index 12e093b21..09beb2ef7 100644
--- a/MediaBrowser.Model/Notifications/NotificationOptions.cs
+++ b/MediaBrowser.Model/Notifications/NotificationOptions.cs
@@ -93,16 +93,17 @@ namespace MediaBrowser.Model.Notifications
{
NotificationOption opt = GetOptions(notificationType);
- return opt == null ||
- !opt.DisabledServices.Contains(service, StringComparer.OrdinalIgnoreCase);
+ return opt == null
+ || !opt.DisabledServices.Contains(service, StringComparer.OrdinalIgnoreCase);
}
public bool IsEnabledToMonitorUser(string type, Guid userId)
{
NotificationOption opt = GetOptions(type);
- return opt != null && opt.Enabled &&
- !opt.DisabledMonitorUsers.Contains(userId.ToString(string.Empty), StringComparer.OrdinalIgnoreCase);
+ return opt != null
+ && opt.Enabled
+ && !opt.DisabledMonitorUsers.Contains(userId.ToString("N"), StringComparer.OrdinalIgnoreCase);
}
public bool IsEnabledToSendToUser(string type, string userId, User user)