when updating the account, use the correct name for the updates

This commit is contained in:
Kris McQueen 2010-10-06 18:27:46 -07:00
parent ec62ef3cd7
commit 1ae2273871
1 changed files with 1 additions and 1 deletions

View File

@ -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();