The Free Software Media System - Server Backend & API
adressing pr comments
Felix Ruhnow1d631540ace6
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.csindex 895c88dc80..aae86e4162 100644--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs@@ -228,12 +228,12 @@ namespace MediaBrowser.Api.UserLibraryrequest.IncludeItemTypes = "Playlist";}- if (!user.Policy.EnabledFolders.Where(i => new Guid(i).Equals(item.Id)).Any() && !user.Policy.EnableAllFolders)+ if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i).Equals(item.Id))){Logger.LogWarning($"{user.Name} is not permitted to access Library {item.Name}.");return new QueryResult<BaseItem>{- Items = new BaseItem[0],+ Items = Array.Empty<BaseItem>(),TotalRecordCount = 0};}