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

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 година
родител
ревизия
8db79c05dd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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(
     public ActionResult UpdateLibraryOptions(
         [FromBody] UpdateLibraryOptionsDto request)
         [FromBody] UpdateLibraryOptionsDto request)
     {
     {
-        var item = _libraryManager.GetItemById<CollectionFolder>(request.Id, User.GetUserId());
+        var item = _libraryManager.GetItemById<CollectionFolder>(request.Id);
         if (item is null)
         if (item is null)
         {
         {
             return NotFound();
             return NotFound();