@@ -256,7 +256,7 @@ protected Pair<List<UserVmVO>, Integer> searchForUserVmsInternal(ListVMsUsageHis
256256 List <Long > permittedAccounts = new ArrayList <>();
257257 boolean recursive = AccountTypesWithRecursiveUsageAccess .contains (caller .getType ());
258258 Ternary <Long , Boolean , Project .ListProjectResourcesCriteria > domainIdRecursiveListProject = new Ternary <>(null , recursive , null );
259- accountMgr .buildACLSearchParameters (caller , id , null , null , permittedAccounts , domainIdRecursiveListProject , true , false );
259+ accountMgr .buildACLSearchParameters (caller , id , null , - 1L , permittedAccounts , domainIdRecursiveListProject , true , false );
260260 Long domainId = domainIdRecursiveListProject .first ();
261261 Boolean isRecursive = domainIdRecursiveListProject .second ();
262262 Project .ListProjectResourcesCriteria listProjectResourcesCriteria = domainIdRecursiveListProject .third ();
@@ -362,7 +362,7 @@ protected Pair<List<VolumeVO>, Integer> searchForVolumesInternal(ListVolumesUsag
362362 List <Long > permittedAccounts = new ArrayList <>();
363363 boolean recursive = AccountTypesWithRecursiveUsageAccess .contains (caller .getType ());
364364 Ternary <Long , Boolean , Project .ListProjectResourcesCriteria > domainIdRecursiveListProject = new Ternary <>(null , recursive , null );
365- accountMgr .buildACLSearchParameters (caller , id , null , null , permittedAccounts , domainIdRecursiveListProject , true , false );
365+ accountMgr .buildACLSearchParameters (caller , id , null , - 1L , permittedAccounts , domainIdRecursiveListProject , true , false );
366366 Long domainId = domainIdRecursiveListProject .first ();
367367 Boolean isRecursive = domainIdRecursiveListProject .second ();
368368 Project .ListProjectResourcesCriteria listProjectResourcesCriteria = domainIdRecursiveListProject .third ();
0 commit comments