浏览代码

Change null check on UserId to a Guid.Empty check

Claus Vium 6 年之前
父节点
当前提交
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);
             var auth = AuthorizationContext.GetAuthorizationInfo(Request);
-            if (auth.UserId != null)
+            if (!auth.UserId.Equals(Guid.Empty))
             {
             {
                 state.User = UserManager.GetUserById(auth.UserId);
                 state.User = UserManager.GetUserById(auth.UserId);
             }
             }