bug 10303: don't show system vm template for templatefilter == (self and feature)

status 10303: resolved fixed
This commit is contained in:
Edison Su 2011-06-17 10:48:39 -04:00
parent 3d0b30073e
commit 240ca7f1f0

View File

@ -1643,7 +1643,7 @@ public class ManagementServerImpl implements ManagementServer {
// It is account specific if account is admin type and domainId and accountName are not null
boolean isAccountSpecific = (account == null || isAdmin(account.getType())) && (accountName != null) && (domainId != null);
boolean showDomr = (templateFilter != TemplateFilter.selfexecutable);
boolean showDomr = ((templateFilter != TemplateFilter.selfexecutable) && (templateFilter != TemplateFilter.featured));
HypervisorType hypervisorType = HypervisorType.getType(cmd.getHypervisor());
return listTemplates(cmd.getId(), cmd.getTemplateName(), cmd.getKeyword(), templateFilter, false, null, accountId, cmd.getPageSizeVal(), cmd.getStartIndex(), cmd.getZoneId(), hypervisorType,