aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/SubtitleController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-01-10 10:48:37 -0700
committercrobibero <cody@robibe.ro>2021-01-10 10:48:37 -0700
commit5f998bdd1f29b3376fa57ddc853743d06a14683f (patch)
tree528326bbb4e7f2010c7b1874baccbcec1d94a52e /Jellyfin.Api/Controllers/SubtitleController.cs
parent9970b87439f4ef264f593f2f9908d4067fb7d17b (diff)
Require elevated auth to upload subtitles
Diffstat (limited to 'Jellyfin.Api/Controllers/SubtitleController.cs')
-rw-r--r--Jellyfin.Api/Controllers/SubtitleController.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/SubtitleController.cs b/Jellyfin.Api/Controllers/SubtitleController.cs
index dcb8e803b..16a47f2d8 100644
--- a/Jellyfin.Api/Controllers/SubtitleController.cs
+++ b/Jellyfin.Api/Controllers/SubtitleController.cs
@@ -371,6 +371,7 @@ namespace Jellyfin.Api.Controllers
/// <response code="204">Subtitle uploaded.</response>
/// <returns>A <see cref="NoContentResult"/>.</returns>
[HttpPost("Videos/{itemId}/Subtitles")]
+ [Authorize(Policy = Policies.RequiresElevation)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<ActionResult> UploadSubtitle(
[FromRoute, Required] Guid itemId,