diff options
| author | Jason Dove <jason@jasondove.me> | 2022-06-23 09:19:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-23 09:19:29 -0500 |
| commit | fc74c8eecf5bf0023ea59918260a4cdbe9ce787c (patch) | |
| tree | e6f34b58b67f57e676f8f248cde92a65ca055eb8 /Jellyfin.Api/Controllers | |
| parent | d06fda43c18b8f600b15365b59d20b603fede141 (diff) | |
tweak guid check
Co-authored-by: Bond-009 <bond.009@outlook.com>
Diffstat (limited to 'Jellyfin.Api/Controllers')
| -rw-r--r-- | Jellyfin.Api/Controllers/ItemsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs index 0b1ef0022..bfa4f9fe7 100644 --- a/Jellyfin.Api/Controllers/ItemsController.cs +++ b/Jellyfin.Api/Controllers/ItemsController.cs @@ -246,7 +246,7 @@ namespace Jellyfin.Api.Controllers { var auth = await _authContext.GetAuthorizationInfo(Request).ConfigureAwait(false); - var user = !auth.IsApiKey && userId.HasValue && !userId.Equals(Guid.Empty) + var user = !auth.IsApiKey && userId.HasValue && !userId.Value.Equals(default) ? _userManager.GetUserById(userId.Value) : null; |
