mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
7010f855b5
commit
cb8f58b706
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user