aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-01-03 07:58:14 +0100
committerClaus Vium <clausvium@gmail.com>2019-01-03 07:58:14 +0100
commitefa3a234e912b9c2740d24f78c16ade07e9c5ce5 (patch)
tree09edbc8d572b4587955f2e34e618562f83968661
parent86275bcc55cfe6cf6798d152a53f79c6f7811b52 (diff)
Change null check on UserId to a Guid.Empty check
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index af56f6382..28e75bf55 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -686,7 +686,7 @@ namespace MediaBrowser.Api.Playback
};
var auth = AuthorizationContext.GetAuthorizationInfo(Request);
- if (auth.UserId != null)
+ if (!auth.UserId.Equals(Guid.Empty))
{
state.User = UserManager.GetUserById(auth.UserId);
}