mirror of
https://github.com/apache/cloudstack
synced 2026-08-09 16:13:13 +00:00
bug 11190: My changes got reverted. Putting them back - Treating the max account limits with -1 values as infinite
This commit is contained in:
parent
3609d166ca
commit
20f0707755
@ -370,7 +370,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
||||
// Check account limits
|
||||
long accountLimit = findCorrectResourceLimit(account.getId(), type);
|
||||
long potentialCount = _resourceCountDao.getAccountCount(account.getId(), type) + numResources;
|
||||
if (potentialCount > accountLimit) {
|
||||
if (accountLimit != -1 && potentialCount > accountLimit) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user