From 956c89dc2f5d6c3b8a3f362564b174fe303a9401 Mon Sep 17 00:00:00 2001 From: cvium Date: Thu, 9 Feb 2023 13:15:58 +0100 Subject: [PATCH] fix default policy --- Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index e2dcaf5f5..9eaed703a 100644 --- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs +++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs @@ -63,7 +63,7 @@ namespace Jellyfin.Server.Extensions { options.DefaultPolicy = new AuthorizationPolicyBuilder() .AddAuthenticationSchemes(AuthenticationSchemes.CustomAuthentication) - .RequireAuthenticatedUser() + .AddRequirements(new DefaultAuthorizationRequirement()) .Build(); options.AddPolicy(Policies.Download, new UserPermissionRequirement(PermissionKind.EnableContentDownloading));