aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
diff options
context:
space:
mode:
authorPatrick Barron <18354464+barronpm@users.noreply.github.com>2020-07-11 15:48:52 +0000
committerGitHub <noreply@github.com>2020-07-11 15:48:52 +0000
commitf7c7b1e7e15678bb8ba92f082b9bc2882c87baae (patch)
tree405408d5cd266b25fc3182951592ce912b0286fd /Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
parent2eef7d49131d717a0752cf3dcab1922637e2ef98 (diff)
parent5d34b07d1ff7239c7961381fc71559d377e7a96b (diff)
Merge pull request #3524 from crobibero/api-migration-nullable
Make query parameters nullable or set default value
Diffstat (limited to 'Jellyfin.Api/Auth/BaseAuthorizationHandler.cs')
-rw-r--r--Jellyfin.Api/Auth/BaseAuthorizationHandler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs b/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
index 50b6468db..9fde175d0 100644
--- a/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
+++ b/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
@@ -52,7 +52,7 @@ namespace Jellyfin.Api.Auth
{
// Ensure claim has userId.
var userId = ClaimHelpers.GetUserId(claimsPrincipal);
- if (userId == null)
+ if (!userId.HasValue)
{
return false;
}