fix default policy

This commit is contained in:
cvium 2023-02-09 13:15:58 +01:00
parent f4a7583c46
commit 956c89dc2f

View File

@ -63,7 +63,7 @@ namespace Jellyfin.Server.Extensions
{ {
options.DefaultPolicy = new AuthorizationPolicyBuilder() options.DefaultPolicy = new AuthorizationPolicyBuilder()
.AddAuthenticationSchemes(AuthenticationSchemes.CustomAuthentication) .AddAuthenticationSchemes(AuthenticationSchemes.CustomAuthentication)
.RequireAuthenticatedUser() .AddRequirements(new DefaultAuthorizationRequirement())
.Build(); .Build();
options.AddPolicy(Policies.Download, new UserPermissionRequirement(PermissionKind.EnableContentDownloading)); options.AddPolicy(Policies.Download, new UserPermissionRequirement(PermissionKind.EnableContentDownloading));