aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-04-10 21:21:17 +0200
committerGitHub <noreply@github.com>2023-04-10 21:21:17 +0200
commit15c8854502a4a9006754921d2bcef016e87b1104 (patch)
tree3a4053580db57f7f235d8324fb8de7f0e7047e59 /Emby.Server.Implementations/Library/LibraryManager.cs
parentc92ad0dc4bf3da2d6eeb87a47d3322bba2de1503 (diff)
parent890fe183cf2f86e899671e78dcc25ef3eb9cc7e7 (diff)
Merge pull request #9607 from goremykin/fix_analyzers_warnings_and_suggestions
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 36a300a57..8883aff0b 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -2749,9 +2749,7 @@ namespace Emby.Server.Implementations.Library
}
})
.Where(i => i is not null)
- .Where(i => query.User is null ?
- true :
- i.IsVisible(query.User))
+ .Where(i => query.User is null || i.IsVisible(query.User))
.ToList();
}