From 02cc83b80702703b06352e98e16ef91b6f64a220 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Fri, 11 Dec 2020 09:54:15 +0100 Subject: [PATCH] Merge pull request #4756 from crobibero/api-key-inverted-condition Fix inverted condition when authenticating with an ApiKey (cherry picked from commit c1bb29532fd4abb0245799df0cc6e9cd6d576568) Signed-off-by: Joshua M. Boniface --- .../HttpServer/Security/AuthorizationContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs index d62e2eefe4..024404ceb0 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs +++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs @@ -185,11 +185,11 @@ namespace Emby.Server.Implementations.HttpServer.Security updateToken = true; } - authInfo.IsApiKey = true; + authInfo.IsApiKey = false; } else { - authInfo.IsApiKey = false; + authInfo.IsApiKey = true; } if (updateToken)