Преглед изворни кода

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 година
родитељ
комит
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/*")]