mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #265 from laf/issue-laf-24
Fixed user preference page to show devices allowed access
This commit is contained in:
@@ -73,10 +73,10 @@ if ($_SESSION['userlevel'] == '5') { echo("<strong class='green'>Global Viewing
|
||||
if ($_SESSION['userlevel'] == '1')
|
||||
{
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `devices_perms` AS P, `devices` AS D WHERE `user_id` = ? AND P.device_id = D.device_id", array($user_id)) as $perm)
|
||||
foreach (dbFetchRows("SELECT * FROM `devices_perms` AS P, `devices` AS D WHERE `user_id` = ? AND P.device_id = D.device_id", array($_SESSION['user_id'])) as $perm)
|
||||
{
|
||||
#FIXME generatedevicelink?
|
||||
echo("<a href='device/device" . $perm['device_id'] . "'>" . $perm['hostname'] . "</a><br />");
|
||||
echo("<a href='device/device=" . $perm['device_id'] . "'>" . $perm['hostname'] . "</a><br />");
|
||||
$dev_access = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user