From 3d7d0297fe2b10241704c303bc5e9f99467ee501 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Mon, 8 Apr 2024 22:24:24 +0200 Subject: [PATCH] Fix policy for GetRemoteSubtitles Other operations related to remote subtitles require the SubtitleManagement policy, so it only makes sense that this operation requires it too. --- Jellyfin.Api/Controllers/SubtitleController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Api/Controllers/SubtitleController.cs b/Jellyfin.Api/Controllers/SubtitleController.cs index cc2a630e1d..e2c5486d98 100644 --- a/Jellyfin.Api/Controllers/SubtitleController.cs +++ b/Jellyfin.Api/Controllers/SubtitleController.cs @@ -165,7 +165,7 @@ public class SubtitleController : BaseJellyfinApiController /// File returned. /// A with the subtitle file. [HttpGet("Providers/Subtitles/Subtitles/{subtitleId}")] - [Authorize] + [Authorize(Policy = Policies.SubtitleManagement)] [ProducesResponseType(StatusCodes.Status200OK)] [Produces(MediaTypeNames.Application.Octet)] [ProducesFile("text/*")]