Explorar o código

Fix missing attributes

crobibero %!s(int64=5) %!d(string=hai) anos
pai
achega
e6b873f2ae
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Jellyfin.Api/Controllers/DisplayPreferencesController.cs

+ 4 - 0
Jellyfin.Api/Controllers/DisplayPreferencesController.cs

@@ -1,6 +1,9 @@
+#nullable enable
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.Threading;
+using MediaBrowser.Controller.Net;
 using MediaBrowser.Controller.Persistence;
 using MediaBrowser.Model.Entities;
 using Microsoft.AspNetCore.Http;
@@ -12,6 +15,7 @@ namespace Jellyfin.Api.Controllers
     /// <summary>
     /// Display Preferences Controller.
     /// </summary>
+    [Authenticated]
     public class DisplayPreferencesController : BaseJellyfinApiController
     {
         private readonly IDisplayPreferencesRepository _displayPreferencesRepository;