Просмотр исходного кода

Change null check on UserId to a Guid.Empty check

Claus Vium 6 лет назад
Родитель
Сommit
efa3a234e9
1 измененных файлов с 1 добавлено и 1 удалено
  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);
             }