mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
Fixed the bug in #438 and added unit tests to make so we dont break it in the future
This commit is contained in:
parent
9d82add7ae
commit
4d85000753
5 changed files with 468 additions and 308 deletions
|
@ -873,7 +873,7 @@ namespace PlexRequests.UI.Modules
|
|||
return Response.AsJson(seasons);
|
||||
}
|
||||
|
||||
private async Task<bool> CheckRequestLimit(PlexRequestSettings s, RequestType type)
|
||||
public async Task<bool> CheckRequestLimit(PlexRequestSettings s, RequestType type)
|
||||
{
|
||||
if (IsAdmin)
|
||||
return true;
|
||||
|
@ -895,7 +895,7 @@ namespace PlexRequests.UI.Modules
|
|||
return true;
|
||||
}
|
||||
|
||||
return requestLimit >= usersLimit.RequestCount;
|
||||
return requestLimit > usersLimit.RequestCount;
|
||||
}
|
||||
|
||||
private int GetRequestLimitForType(RequestType type, PlexRequestSettings s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue