mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
Fixed a bug where it blocked users with 0 limits.
This commit is contained in:
parent
5d0a8fb493
commit
e96089f5eb
1 changed files with 7 additions and 1 deletions
|
@ -58,6 +58,9 @@ namespace Ombi.Core.Rule.Rules.Request
|
|||
var requestLog = _requestLog.GetAll().Where(x => x.UserId == obj.RequestedUserId);
|
||||
if (obj.RequestType == RequestType.Movie)
|
||||
{
|
||||
if (movieLimit <= 0)
|
||||
return Success();
|
||||
|
||||
var movieLogs = requestLog.Where(x => x.RequestType == RequestType.Movie);
|
||||
|
||||
// Count how many requests in the past 7 days
|
||||
|
@ -70,6 +73,9 @@ namespace Ombi.Core.Rule.Rules.Request
|
|||
}
|
||||
else
|
||||
{
|
||||
if (episodeLimit <= 0)
|
||||
return Success();
|
||||
|
||||
var child = (ChildRequests) obj;
|
||||
var requestCount = 0;
|
||||
// Get the count of requests to be made
|
||||
|
@ -92,4 +98,4 @@ namespace Ombi.Core.Rule.Rules.Request
|
|||
return Success();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue