mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed user perms for eventlog dropdown
This commit is contained in:
@@ -26,11 +26,12 @@ print_optionbar_start();
|
||||
<?php
|
||||
foreach (get_all_devices() as $hostname)
|
||||
{
|
||||
echo("<option value='".getidbyname($hostname)."'");
|
||||
|
||||
if (getidbyname($hostname) == $_POST['device']) { echo("selected"); }
|
||||
|
||||
echo(">".$hostname."</option>");
|
||||
$device_id = getidbyname($hostname);
|
||||
if (device_permitted($device_id)) {
|
||||
echo("<option value='".$device_id."'");
|
||||
if ($device_id == $_POST['device']) { echo("selected"); }
|
||||
echo(">".$hostname."</option>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user