bug 11804: Only root admins have a relaxed resource limit now

status 11804: resolved fixed
This commit is contained in:
Abhinandan Prateek 2011-11-02 13:30:15 +05:30
parent 1d877edfe7
commit ad5341d0d3
1 changed files with 2 additions and 2 deletions

View File

@ -353,8 +353,8 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
public boolean resourceLimitExceeded(Account account, ResourceType type, long... count) {
long numResources = ((count.length == 0) ? 1 : count[0]);
// Don't place any limits on system or admin accounts
if (isAdmin(account.getType())) {
// Don't place any limits on system or admin accounts for ROOT domain only
if (isAdmin(account.getType()) && account.getDomainId() == 1) {
return false;
}