Skip to content

Commit 2521fd4

Browse files
committed
CLOUDSTACK-6513: remove commented code.
1 parent db9aee4 commit 2521fd4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

server/src/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,11 +3346,8 @@ private Pair<List<TemplateJoinVO>, Integer> searchForTemplatesInternal(Long temp
33463346
sc.addAnd("accountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
33473347
}
33483348
} else if (templateFilter == TemplateFilter.sharedexecutable || templateFilter == TemplateFilter.shared) {
3349+
// only show templates shared by others
33493350
sc.addAnd("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
3350-
// SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
3351-
// scc.addOr("accountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
3352-
// scc.addOr("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
3353-
// sc.addAnd("accountId", SearchCriteria.Op.SC, scc);
33543351
} else if (templateFilter == TemplateFilter.executable) {
33553352
SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
33563353
scc.addOr("publicTemplate", SearchCriteria.Op.EQ, true);

0 commit comments

Comments
 (0)