Enforce download permission on download policy

This commit is contained in:
Shadowghost 2023-01-20 00:39:08 +01:00
parent 885a1b02c1
commit 060a80bef7

View File

@ -28,7 +28,7 @@ namespace Jellyfin.Api.Auth.DownloadPolicy
/// <inheritdoc />
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, DownloadRequirement requirement)
{
var validated = ValidateClaims(context.User);
var validated = ValidateClaims(context.User, requiredDownloadPermission: true);
if (validated)
{
context.Succeed(requirement);