Skip to content

Commit

Permalink
fix policy (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch1nkara authored Apr 5, 2024
1 parent c3e0179 commit d3b9e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jellyfin.Plugin.OpenSubtitles/API/OpenSubtitlesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
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;
Expand All @@ -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>
Expand Down

0 comments on commit d3b9e11

Please sign in to comment.