mirror of https://github.com/apache/cloudstack.git
Merging from 2.2Beta3 where network was not showing network dedicated to an user
This commit is contained in:
parent
18d4c97b55
commit
fa7504532e
|
|
@ -1555,14 +1555,6 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
if (account.getType() != Account.ACCOUNT_TYPE_ADMIN || (accountName != null && domainId != null)) {
|
||||
sc.addAnd("accountId", SearchCriteria.Op.EQ, accountId);
|
||||
}
|
||||
|
||||
SearchCriteria<NetworkVO> ssc = _networksDao.createSearchCriteria();
|
||||
/* ssc.addOr("accountId", SearchCriteria.Op.EQ, accountId);
|
||||
if (accountName == null && domainId == null) {
|
||||
ssc.addOr("accountId", SearchCriteria.Op.EQ, 1L);
|
||||
}
|
||||
sc.addAnd("accountId", SearchCriteria.Op.SC, ssc);
|
||||
}*/
|
||||
|
||||
List<NetworkVO> networks = _networksDao.search(sc, searchFilter);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue