From d621e5034c5ddc83676ab9af8303c364e7bfd342 Mon Sep 17 00:00:00 2001 From: chinkara <93598936+Ch1nkara@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:13:47 +0200 Subject: [PATCH] fix policy (#138) --- Jellyfin.Plugin.OpenSubtitles/API/OpenSubtitlesController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.OpenSubtitles/API/OpenSubtitlesController.cs b/Jellyfin.Plugin.OpenSubtitles/API/OpenSubtitlesController.cs index fa1ace9..0dba361 100644 --- a/Jellyfin.Plugin.OpenSubtitles/API/OpenSubtitlesController.cs +++ b/Jellyfin.Plugin.OpenSubtitles/API/OpenSubtitlesController.cs @@ -5,6 +5,7 @@ using System.Threading; using System.Threading.Tasks; using Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler; using Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler.Models; +using MediaBrowser.Common.Api; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; @@ -16,7 +17,7 @@ namespace Jellyfin.Plugin.OpenSubtitles.API; /// [ApiController] [Produces(MediaTypeNames.Application.Json)] -[Authorize] +[Authorize(Policy = Policies.SubtitleManagement)] public class OpenSubtitlesController : ControllerBase { ///