mirror of https://github.com/apache/cloudstack.git
when updating the account, use the correct name for the updates
This commit is contained in:
parent
ec62ef3cd7
commit
1ae2273871
|
|
@ -1132,7 +1132,7 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
throw new PermissionDeniedException("Invalid account " + accountName + " in domain " + domainId + " given, permission denied");
|
||||
}
|
||||
|
||||
if (account.getAccountName().equals(accountName)) {
|
||||
if (account.getAccountName().equals(newAccountName)) {
|
||||
success = true;
|
||||
} else {
|
||||
AccountVO acctForUpdate = _accountDao.createForUpdate();
|
||||
|
|
|
|||
Loading…
Reference in New Issue