mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Enforce download permission on download policy
This commit is contained in:
parent
885a1b02c1
commit
060a80bef7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue