mirror of https://github.com/apache/cloudstack.git
Fixed updateAccount command to work via 8096 port.
This commit is contained in:
parent
ad822bc136
commit
a0eaf32cad
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue