Browse Source

Enforce download permission on download policy

Shadowghost 2 years ago
parent
commit
060a80bef7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jellyfin.Api/Auth/DownloadPolicy/DownloadHandler.cs

+ 1 - 1
Jellyfin.Api/Auth/DownloadPolicy/DownloadHandler.cs

@@ -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);