CLOUDSTACK-6513: remove commented code.

This commit is contained in:
Min Chen 2014-04-30 10:03:06 -07:00
parent db9aee4517
commit 2521fd482b
1 changed files with 1 additions and 4 deletions

View File

@ -3346,11 +3346,8 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
sc.addAnd("accountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
}
} else if (templateFilter == TemplateFilter.sharedexecutable || templateFilter == TemplateFilter.shared) {
// only show templates shared by others
sc.addAnd("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
// SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
// scc.addOr("accountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
// scc.addOr("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
// sc.addAnd("accountId", SearchCriteria.Op.SC, scc);
} else if (templateFilter == TemplateFilter.executable) {
SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
scc.addOr("publicTemplate", SearchCriteria.Op.EQ, true);