Skip to content
Snippets Groups Projects
Commit dbda3d3c authored by Travis Ralston's avatar Travis Ralston
Browse files

Ensure a limit of 0 is supported for MaxPending quota

parent 25ea2314
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ func Check(ctx rcontext.RequestContext, userId string, quotaType Type) error { ...@@ -23,7 +23,7 @@ func Check(ctx rcontext.RequestContext, userId string, quotaType Type) error {
return err return err
} }
if quotaType == MaxBytes || quotaType == MaxCount { if quotaType == MaxBytes || quotaType == MaxCount || quotaType == MaxPending {
if limit <= 0 { if limit <= 0 {
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment