aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Session/SessionInfo.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-12 22:46:44 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-01-12 22:46:44 -0500
commitd8d5dd487326dd3fccf4e9f30cd8f7e3783fcfda (patch)
treecf9950d32ee194d72a367c836a70dfb8f4e61401 /MediaBrowser.Controller/Session/SessionInfo.cs
parentf55217406985ad21da44aa523353f33e3f720ccd (diff)
make channel access opt-in rather than opt out
Diffstat (limited to 'MediaBrowser.Controller/Session/SessionInfo.cs')
-rw-r--r--MediaBrowser.Controller/Session/SessionInfo.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs
index d8a2464d6..078d4d70f 100644
--- a/MediaBrowser.Controller/Session/SessionInfo.cs
+++ b/MediaBrowser.Controller/Session/SessionInfo.cs
@@ -160,6 +160,11 @@ namespace MediaBrowser.Controller.Session
}
}
+ public bool ContainsUser(string userId)
+ {
+ return ContainsUser(new Guid(userId));
+ }
+
public bool ContainsUser(Guid userId)
{
return (UserId ?? Guid.Empty) == userId || AdditionalUsers.Any(i => userId == new Guid(i.UserId));