server: fix for user account able to list child domain n/w offering

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2019-07-12 13:39:25 +05:30
parent 7010f855b5
commit cb8f58b706

View File

@ -5448,7 +5448,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
for (String domainIdString : domainIdsArray) {
Long dId = Long.valueOf(domainIdString.trim());
if (caller.getType() != Account.ACCOUNT_TYPE_ADMIN &&
!_domainDao.isChildDomain(caller.getDomainId(), dId)) {
!_domainDao.isChildDomain(dId, caller.getDomainId())) {
toRemove = true;
break;
}