mirror of https://github.com/apache/cloudstack.git
Fixed security problem in listAccounts call (regular user could see other accounts' info when domainId was passed in to listAccounts call)
This commit is contained in:
parent
5c4cf11860
commit
51041e4f77
|
|
@ -2007,7 +2007,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
|||
if (domainId == null) {
|
||||
domainId = caller.getDomainId();
|
||||
}
|
||||
} else if (domainId != null) {
|
||||
} else if (isAdmin(caller.getType()) && domainId != null) {
|
||||
listForDomain = true;
|
||||
} else {
|
||||
accountId = caller.getAccountId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue