mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
Change null check on UserId to a Guid.Empty check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user