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