webui: Add check to display make bill on port page only if billing is enabled (#4361)

This commit is contained in:
David Bell
2016-09-06 17:42:31 +01:00
committed by Neil Lathwood
parent 7b923ae307
commit c61f2c183a

View File

@@ -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>";
}