Fixed updateAccount command to work via 8096 port.

This commit is contained in:
alena 2010-11-18 17:33:26 -08:00
parent ad822bc136
commit a0eaf32cad
1 changed files with 1 additions and 1 deletions

View File

@ -1406,7 +1406,7 @@ public class AccountManagerImpl implements AccountManager, AccountService {
//Check if user performing the action is allowed to modify this account
Account adminAccount = UserContext.current().getAccount();
if ((adminAccount != null) && _domainDao.isChildDomain(adminAccount.getDomainId(), account.getDomainId())) {
if ((adminAccount != null) && (adminAccount.getType() != Account.ACCOUNT_TYPE_ADMIN) && _domainDao.isChildDomain(adminAccount.getDomainId(), account.getDomainId())) {
throw new PermissionDeniedException("Invalid account " + accountName + " in domain " + domainId + " given, permission denied");
}