瀏覽代碼

adressing pr comments

Felix Ruhnow 6 年之前
父節點
當前提交
ba003e06ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Api/UserLibrary/ItemsService.cs

+ 1 - 1
MediaBrowser.Api/UserLibrary/ItemsService.cs

@@ -228,7 +228,7 @@ namespace MediaBrowser.Api.UserLibrary
                 request.IncludeItemTypes = "Playlist";
             }
 
-            if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i).Equals(item.Id)))
+            if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
             {
                 Logger.LogWarning($"{user.Name} is not permitted to access Library {item.Name}.");
                 return new QueryResult<BaseItem>