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 System.Threading.Tasks;
|
||||||
using Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler;
|
using Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler;
|
||||||
using Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler.Models;
|
using Jellyfin.Plugin.OpenSubtitles.OpenSubtitlesHandler.Models;
|
||||||
|
using MediaBrowser.Common.Api;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
@ -16,7 +17,7 @@ namespace Jellyfin.Plugin.OpenSubtitles.API;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Produces(MediaTypeNames.Application.Json)]
|
[Produces(MediaTypeNames.Application.Json)]
|
||||||
[Authorize]
|
[Authorize(Policy = Policies.SubtitleManagement)]
|
||||||
public class OpenSubtitlesController : ControllerBase
|
public class OpenSubtitlesController : ControllerBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user