mirror of
https://github.com/jellyfin/jellyfin-plugin-opensubtitles.git
synced 2024-11-23 06:09:51 +00:00
fix policy (#138)
This commit is contained in:
parent
28c5c6a625
commit
d621e5034c
@ -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;
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[Produces(MediaTypeNames.Application.Json)]
|
||||
[Authorize]
|
||||
[Authorize(Policy = Policies.SubtitleManagement)]
|
||||
public class OpenSubtitlesController : ControllerBase
|
||||
{
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user