mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 17:52:57 -07:00
Make sure it's approved too
This commit is contained in:
parent
572746351b
commit
7ef7e0b9b6
2 changed files with 4 additions and 4 deletions
|
@ -281,7 +281,7 @@ namespace Ombi.Core.Engine
|
|||
List<ChildRequests> allRequests;
|
||||
if (shouldHide.Hide)
|
||||
{
|
||||
allRequests = await TvRepository.GetChild(shouldHide.UserId).Where(x => !x.Available).ToListAsync();
|
||||
allRequests = await TvRepository.GetChild(shouldHide.UserId).Where(x => !x.Available && x.Approved).ToListAsync();
|
||||
|
||||
// Filter out children
|
||||
|
||||
|
@ -289,7 +289,7 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
else
|
||||
{
|
||||
allRequests = await TvRepository.GetChild().Where(x => !x.Available).ToListAsync();
|
||||
allRequests = await TvRepository.GetChild().Where(x => !x.Available && x.Approved).ToListAsync();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue