mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 7106: fixing the account updating bug
status 7106: resolved fixed
This commit is contained in:
parent
294332c6e0
commit
376d5da45d
@ -1462,7 +1462,7 @@ public class AccountManagerImpl implements AccountManager, AccountService {
|
||||
|
||||
//check if the given account name is unique in this domain for updating
|
||||
Account duplicateAcccount = _accountDao.findAccount(newAccountName, domainId);
|
||||
if(duplicateAcccount != null && duplicateAcccount.getId() != account.getId()){//allow same account to update itself
|
||||
if(duplicateAcccount != null && duplicateAcccount.getRemoved() == null && duplicateAcccount.getId() != account.getId()){//allow same account to update itself
|
||||
throw new PermissionDeniedException("There already exists an account with the name:"+newAccountName+" in the domain:"+domainId+" with existing account id:"+duplicateAcccount.getId());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user