mirror of https://github.com/apache/cloudstack.git
allow subdomain access parent domain's network
This commit is contained in:
parent
fdc9f10cc1
commit
271cf92ab7
|
|
@ -1544,6 +1544,9 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager, L
|
|||
finalizeServicesAndProvidersForNetwork(offering, plan.getPhysicalNetworkId())));
|
||||
|
||||
if (domainId != null && aclType == ACLType.Domain) {
|
||||
if (subdomainAccess == null ) {
|
||||
subdomainAccess = true;
|
||||
}
|
||||
_networksDao.addDomainToNetwork(id, domainId, subdomainAccess);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1673,7 +1673,7 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel {
|
|||
if (networkDomainMap.subdomainAccess) {
|
||||
Set<Long> parentDomains = _domainMgr.getDomainParentIds(domainId);
|
||||
|
||||
if (parentDomains.contains(domainId)) {
|
||||
if (parentDomains.contains(networkDomainId)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue