aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SubtitleController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-04-10 18:29:00 +0200
committerGitHub <noreply@github.com>2024-04-10 18:29:00 +0200
commitdc74bc361d586130ed04b24d85456013975d9f44 (patch)
tree6a228bdc826b5abb092620c922b27c78611ebafc /Jellyfin.Api/Controllers/SubtitleController.cs
parent63d7d84d2c3338155511cafc44c64084649bf02a (diff)
parent3d7d0297fe2b10241704c303bc5e9f99467ee501 (diff)
Merge pull request #11321 from nielsvanvelzen/get-remote-subs-perm
Fix policy for GetRemoteSubtitles
Diffstat (limited to 'Jellyfin.Api/Controllers/SubtitleController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SubtitleController.cs2
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/*")]