bug 11190: My changes got reverted. Putting them back - Treating the max account limits with -1 values as infinite

This commit is contained in:
Nitin 2011-09-14 19:35:48 +05:30
parent cc1c6347da
commit 22cca97894
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}