mirror of https://github.com/apache/cloudstack.git
Fix a bug in listParentAclGroups to handle empty parent group case.
This commit is contained in:
parent
3b58a45e04
commit
0b5b861994
|
|
@ -276,6 +276,10 @@ public class IAMServiceImpl extends ManagerBase implements IAMService, Manager {
|
|||
}
|
||||
}
|
||||
|
||||
if (pathList.isEmpty()) {
|
||||
return new ArrayList<AclGroup>();
|
||||
}
|
||||
|
||||
SearchBuilder<AclGroupVO> sb = _aclGroupDao.createSearchBuilder();
|
||||
sb.and("paths", sb.entity().getPath(), SearchCriteria.Op.IN);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue