Invite & Library Edit - Missing SideNav Code (#2322)

This commit is contained in:
Joe Milazzo 2023-10-17 14:08:56 -05:00 committed by GitHub
parent 7c8fdd9ea8
commit a3afa04be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 139 additions and 66 deletions

View file

@ -929,6 +929,12 @@ public class SeriesRepository : ISeriesRepository
query ??= _context.Series
.AsNoTracking();
// When the user has no access, just return instantly
if (userLibraries.Count == 0)
{
return query.Where(s => false);
}
// First setup any FilterField.Libraries in the statements, as these don't have any traditional query statements applied here