mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	bug 10303: don't show system vm template for templatefilter == (self and feature)
status 10303: resolved fixed
This commit is contained in:
		
							parent
							
								
									3d0b30073e
								
							
						
					
					
						commit
						240ca7f1f0
					
				@ -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,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user