aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Channels/Channel.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-03 00:20:04 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-03 00:20:04 -0400
commit6936336b82467d3d8ea53af89bd5abcf7cdea678 (patch)
treef11a0cd9443193d60260088ca2220e5fb46fcea0 /MediaBrowser.Controller/Channels/Channel.cs
parent3228f50895d52afb97e985d8223ffc062a75c69a (diff)
add channels infrastructure
Diffstat (limited to 'MediaBrowser.Controller/Channels/Channel.cs')
-rw-r--r--MediaBrowser.Controller/Channels/Channel.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Channels/Channel.cs b/MediaBrowser.Controller/Channels/Channel.cs
index c9a70f2bc2..b894893c6c 100644
--- a/MediaBrowser.Controller/Channels/Channel.cs
+++ b/MediaBrowser.Controller/Channels/Channel.cs
@@ -1,9 +1,21 @@
using MediaBrowser.Controller.Entities;
+using System;
+using System.Linq;
namespace MediaBrowser.Controller.Channels
{
public class Channel : BaseItem
{
public string OriginalChannelName { get; set; }
+
+ public override bool IsVisible(User user)
+ {
+ if (user.Configuration.BlockedChannels.Contains(Name, StringComparer.OrdinalIgnoreCase))
+ {
+ return false;
+ }
+
+ return base.IsVisible(user);
+ }
}
}