mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Restrict inventory api calls to the device requested (#5267)
This commit is contained in:
@ -1017,6 +1017,8 @@ function get_inventory()
|
||||
$total_inv = 0;
|
||||
$inventory = array();
|
||||
} else {
|
||||
$sql .= ' AND `device_id`=?';
|
||||
$params[] = $device_id;
|
||||
$inventory = dbFetchRows("SELECT * FROM `entPhysical` WHERE 1 $sql", $params);
|
||||
$code = 200;
|
||||
$status = 'ok';
|
||||
|
Reference in New Issue
Block a user