mirror of https://github.com/apache/cloudstack.git
fixed listNetworks by projectId
This commit is contained in:
parent
7f672097f9
commit
9f49967365
|
|
@ -1811,7 +1811,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
throw new InvalidParameterValueException("Parameter subDomainAccess can be specified only with aclType=Domain");
|
||||
}
|
||||
Account owner = null;
|
||||
if (cmd.getAccountName() != null && domainId != null) {
|
||||
if ((cmd.getAccountName() != null && domainId != null) || cmd.getProjectId() != null) {
|
||||
owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), domainId, cmd.getProjectId());
|
||||
} else {
|
||||
owner = caller;
|
||||
|
|
|
|||
|
|
@ -1280,7 +1280,6 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
|||
|
||||
return getAccount(project.getProjectAccountId());
|
||||
}
|
||||
|
||||
|
||||
if (isAdmin(caller.getType()) && accountName != null && domainId != null) {
|
||||
Domain domain = _domainMgr.getDomain(domainId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue