diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-01-03 07:58:14 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-01-03 07:58:14 +0100 |
| commit | efa3a234e912b9c2740d24f78c16ade07e9c5ce5 (patch) | |
| tree | 09edbc8d572b4587955f2e34e618562f83968661 | |
| parent | 86275bcc55cfe6cf6798d152a53f79c6f7811b52 (diff) | |
Change null check on UserId to a Guid.Empty check
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 2 |
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); } |
