mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
server: fix mysql error when list Shared templates for project (#8020)
This commit is contained in:
parent
96205a51ef
commit
3d8cc63bc3
@ -3758,6 +3758,9 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
||||
}
|
||||
} else if (templateFilter == TemplateFilter.sharedexecutable || templateFilter == TemplateFilter.shared) {
|
||||
// only show templates shared by others
|
||||
if (permittedAccounts.isEmpty()) {
|
||||
return new Pair<>(new ArrayList<>(), 0);
|
||||
}
|
||||
sc.addAnd("sharedAccountId", SearchCriteria.Op.IN, permittedAccountIds.toArray());
|
||||
} else if (templateFilter == TemplateFilter.executable) {
|
||||
SearchCriteria<TemplateJoinVO> scc = _templateJoinDao.createSearchCriteria();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user