aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Channels
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-04-15 00:11:51 -0400
committerLuke <luke.pulverenti@gmail.com>2015-04-15 00:11:51 -0400
commit9b451f9095c61858347072e1651fcd9c327fc59d (patch)
tree9ae870940fff6c4ea01de19f4268f39da265935f /MediaBrowser.Controller/Channels
parentad6e7485b2498d6b60b8f1ce19cbfd7a44443b7b (diff)
parentc9b11c309d08aa27113e085ce323077fc38b98a0 (diff)
Merge pull request #1080 from MediaBrowser/dev
3.0.5582.1
Diffstat (limited to 'MediaBrowser.Controller/Channels')
-rw-r--r--MediaBrowser.Controller/Channels/Channel.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Channels/Channel.cs b/MediaBrowser.Controller/Channels/Channel.cs
index f746d87fff..f0328a1d88 100644
--- a/MediaBrowser.Controller/Channels/Channel.cs
+++ b/MediaBrowser.Controller/Channels/Channel.cs
@@ -14,11 +14,21 @@ namespace MediaBrowser.Controller.Channels
public override bool IsVisible(User user)
{
- if (!user.Policy.EnableAllChannels && !user.Policy.EnabledChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
+ if (user.Policy.BlockedChannels != null)
{
- return false;
+ if (user.Policy.BlockedChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
+ {
+ return false;
+ }
}
-
+ else
+ {
+ if (!user.Policy.EnableAllChannels && !user.Policy.EnabledChannels.Contains(Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
+ {
+ return false;
+ }
+ }
+
return base.IsVisible(user);
}