Update QueryManagerImpl.java

This commit is contained in:
dahn 2019-06-13 12:27:59 +02:00 committed by GitHub
parent 8462fcec96
commit b47ae147e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -646,7 +646,10 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
Ternary<Long, Boolean, ListProjectResourcesCriteria> domainIdRecursiveListProject = new Ternary<Long, Boolean, ListProjectResourcesCriteria>(cmd.getDomainId(), cmd.isRecursive(), null);
Long projectId = cmd.getProjectId() == null ? cmd.getResourceId() : cmd.getProjectId();
Long projectId = cmd.getProjectId();
if (resourceType.equalsIgnoreCase("project") && projectId == null) {
projectId = Long.parseLong(resourceId);
}
_accountMgr.buildACLSearchParameters(caller, null, cmd.getAccountName(), projectId, permittedAccounts, domainIdRecursiveListProject, listAll, false);
Long domainId = domainIdRecursiveListProject.first();