mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove Edit link if not admin
This commit is contained in:
@ -154,7 +154,11 @@ else {
|
||||
<td><?php echo $used ?></td>
|
||||
<td style="text-align: center;"><?php echo $overuse ?></td>
|
||||
<td><?php echo print_percentage_bar(250, 20, $percent, null, 'ffffff', $background['left'], $percent.'%', 'ffffff', $background['right'])?></td>
|
||||
<td><a href='<?php echo generate_url(array('page' => 'bill', 'bill_id' => $bill['bill_id'], 'view' => 'edit')) ?>'><img src='images/16/wrench.png' align=absmiddle alt='Edit'> Edit</a></td>
|
||||
<td>
|
||||
<?php if ($_SESSION['userlevel'] >= 10) { ?>
|
||||
<a href='<?php echo generate_url(array('page' => 'bill', 'bill_id' => $bill['bill_id'], 'view' => 'edit')) ?>'><img src='images/16/wrench.png' align=absmiddle alt='Edit'> Edit</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
}?>
|
||||
|
Reference in New Issue
Block a user