From a02576349a085e14590e956e559513a2c56d5aa2 Mon Sep 17 00:00:00 2001
From: Aliaksandr Valialkin <valyala@victoriametrics.com>
Date: Sat, 11 Feb 2023 20:51:39 -0800
Subject: [PATCH] app/vmauth: allow specifying `max_concurrent_requests` value
 on a per-user basis bigger than the `-maxConcurrentPerUserRequests` value

---
 app/vmauth/auth_config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/vmauth/auth_config.go b/app/vmauth/auth_config.go
index a316f2a520..5031c67a06 100644
--- a/app/vmauth/auth_config.go
+++ b/app/vmauth/auth_config.go
@@ -64,7 +64,7 @@ func (ui *UserInfo) endConcurrencyLimit() {
 
 func (ui *UserInfo) getMaxConcurrentRequests() int {
 	mcr := ui.MaxConcurrentRequests
-	if mcr <= 0 || mcr > *maxConcurrentPerUserRequests {
+	if mcr <= 0 {
 		mcr = *maxConcurrentPerUserRequests
 	}
 	return mcr