feat: skip GetUserCount() if there is no quota limit (#3491)

This commit is contained in:
DacongDA
2025-01-10 22:28:25 +08:00
committed by GitHub
parent fcfb73af6e
commit b96fa2a995
2 changed files with 9 additions and 9 deletions

View File

@ -353,13 +353,7 @@ func (c *ApiController) AddUser() {
return
}
count, err := object.GetUserCount("", "", "", "")
if err != nil {
c.ResponseError(err.Error())
return
}
if err := checkQuotaForUser(int(count)); err != nil {
if err := checkQuotaForUser(); err != nil {
c.ResponseError(err.Error())
return
}