Преглед на файлове

Fix Authorize attributes

crobibero преди 5 години
родител
ревизия
311f2e2bc3
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Jellyfin.Api/Controllers/DisplayPreferencesController.cs

+ 2 - 2
Jellyfin.Api/Controllers/DisplayPreferencesController.cs

@@ -2,9 +2,9 @@
 
 using System.ComponentModel.DataAnnotations;
 using System.Threading;
-using MediaBrowser.Controller.Net;
 using MediaBrowser.Controller.Persistence;
 using MediaBrowser.Model.Entities;
+using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
 using Microsoft.AspNetCore.Mvc.ModelBinding;
@@ -14,7 +14,7 @@ namespace Jellyfin.Api.Controllers
     /// <summary>
     /// Display Preferences Controller.
     /// </summary>
-    [Authenticated]
+    [Authorize]
     public class DisplayPreferencesController : BaseJellyfinApiController
     {
         private readonly IDisplayPreferencesRepository _displayPreferencesRepository;