mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	bug 9729 : Permission change - allow admin to use anybody's private template.
status 9729: resolved fixed
This commit is contained in:
		
							parent
							
								
									d006fd141c
								
							
						
					
					
						commit
						024bd039da
					
				@ -82,7 +82,7 @@ public class DomainChecker extends AdapterBase implements SecurityChecker {
 | 
			
		||||
            // validate that the template is usable by the account
 | 
			
		||||
            if (!template.isPublicTemplate()) {
 | 
			
		||||
                Account owner = _accountDao.findById(template.getAccountId());
 | 
			
		||||
                if (BaseCmd.isAdmin(owner.getType()) || (owner.getId() == caller.getId())) {
 | 
			
		||||
                if (BaseCmd.isAdmin(caller.getType()) || (owner.getId() == caller.getId())) {
 | 
			
		||||
                    return true;
 | 
			
		||||
                }
 | 
			
		||||
                
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user