mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	CLOUDSTACK-9594: reverted changes introduced in CLOUDSTACK-9376
This commit is contained in:
		
							parent
							
								
									a13231226c
								
							
						
					
					
						commit
						7059f9e12d
					
				@ -3054,9 +3054,9 @@ public class QueryManagerImpl extends ManagerBase implements QueryService, Confi
 | 
			
		||||
 | 
			
		||||
        boolean listAll = false;
 | 
			
		||||
        if (templateFilter != null && templateFilter == TemplateFilter.all) {
 | 
			
		||||
            if (caller.getType() != Account.ACCOUNT_TYPE_ADMIN) {
 | 
			
		||||
            if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) {
 | 
			
		||||
                throw new InvalidParameterValueException("Filter " + TemplateFilter.all
 | 
			
		||||
                        + " can be specified by root admin only");
 | 
			
		||||
                        + " can be specified by admin only");
 | 
			
		||||
            }
 | 
			
		||||
            listAll = true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user