Fix a bug in listParentAclGroups to handle empty parent group case.

This commit is contained in:
Min Chen 2014-02-07 14:13:56 -08:00
parent 3b58a45e04
commit 0b5b861994
1 changed files with 4 additions and 0 deletions

View File

@ -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);