fix default policy
This commit is contained in:
parent
f4a7583c46
commit
956c89dc2f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user