소스 검색

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