Jelajahi Sumber

Don't check if admin has access to library when updating

The access check also checks if the library is enabled, this makes it impossible to enable disabled libraries.
Regression from  #11171
Bond_009 1 tahun lalu
induk
melakukan
8db79c05dd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Jellyfin.Api/Controllers/LibraryStructureController.cs

+ 1 - 1
Jellyfin.Api/Controllers/LibraryStructureController.cs

@@ -319,7 +319,7 @@ public class LibraryStructureController : BaseJellyfinApiController
     public ActionResult UpdateLibraryOptions(
         [FromBody] UpdateLibraryOptionsDto request)
     {
-        var item = _libraryManager.GetItemById<CollectionFolder>(request.Id, User.GetUserId());
+        var item = _libraryManager.GetItemById<CollectionFolder>(request.Id);
         if (item is null)
         {
             return NotFound();