Просмотр исходного кода

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.
Niels van Velzen 1 год назад
Родитель
Сommit
3d7d0297fe
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Jellyfin.Api/Controllers/SubtitleController.cs

+ 1 - 1
Jellyfin.Api/Controllers/SubtitleController.cs

@@ -165,7 +165,7 @@ public class SubtitleController : BaseJellyfinApiController
     /// <response code="200">File returned.</response>
     /// <returns>A <see cref="FileStreamResult"/> with the subtitle file.</returns>
     [HttpGet("Providers/Subtitles/Subtitles/{subtitleId}")]
-    [Authorize]
+    [Authorize(Policy = Policies.SubtitleManagement)]
     [ProducesResponseType(StatusCodes.Status200OK)]
     [Produces(MediaTypeNames.Application.Octet)]
     [ProducesFile("text/*")]