소스 검색

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>