Explorar o código

Change null check on UserId to a Guid.Empty check

Claus Vium %!s(int64=6) %!d(string=hai) anos
pai
achega
efa3a234e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Api/Playback/BaseStreamingService.cs

+ 1 - 1
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);
             }