diff options
| author | Niels van Velzen <git@ndat.nl> | 2024-04-08 22:24:24 +0200 |
|---|---|---|
| committer | Niels van Velzen <git@ndat.nl> | 2024-04-08 22:24:24 +0200 |
| commit | 3d7d0297fe2b10241704c303bc5e9f99467ee501 (patch) | |
| tree | 5c08a0af7a77d51e079daef2c65df12f38c3304f /Jellyfin.Api/Controllers/SubtitleController.cs | |
| parent | 46071e46286138d39175aaefec56391806adb731 (diff) | |
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.
Diffstat (limited to 'Jellyfin.Api/Controllers/SubtitleController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SubtitleController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SubtitleController.cs b/Jellyfin.Api/Controllers/SubtitleController.cs index cc2a630e1..e2c5486d9 100644 --- a/Jellyfin.Api/Controllers/SubtitleController.cs +++ b/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/*")] |
