We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96205a5 commit 3d8cc63Copy full SHA for 3d8cc63
server/src/main/java/com/cloud/api/query/QueryManagerImpl.java
@@ -3758,6 +3758,9 @@ else if (!template.isPublicTemplate() && caller.getType() != Account.Type.ADMIN)
3758
}
3759
} else if (templateFilter == TemplateFilter.sharedexecutable || templateFilter == TemplateFilter.shared) {
3760
// only show templates shared by others
3761
+ if (permittedAccounts.isEmpty()) {
3762
+ return new Pair<>(new ArrayList<>(), 0);
3763
+ }
3764
sc.addAnd("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
3765
} else if (templateFilter == TemplateFilter.executable) {
3766
SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
0 commit comments