mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	webui: Add check to display make bill on port page only if billing is enabled (#4361)
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							7b923ae307
						
					
				
				
					commit
					c61f2c183a
				
			@@ -226,7 +226,7 @@ if (dbFetchCell("SELECT COUNT(*) FROM juniAtmVp WHERE port_id = '".$port['port_i
 | 
			
		||||
    }
 | 
			
		||||
}//end if
 | 
			
		||||
 | 
			
		||||
if ($_SESSION['userlevel'] >= '10') {
 | 
			
		||||
if ($_SESSION['userlevel'] >= '10' && $config['enable_billing'] == 1) {
 | 
			
		||||
    echo "<span style='float: right;'><a href='" . generate_url(array('page'=>'bills', 'view'=>'add', 'port'=>$port['port_id'])) . "'><img src='images/16/money.png' border='0' align='absmiddle'> Create Bill</a></span>";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user