mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix for admin users
This commit is contained in:
@@ -29,7 +29,7 @@ if (!empty($_POST['to'])) {
|
||||
|
||||
if ($_SESSION['userlevel'] >= '5') {
|
||||
$sql = 'FROM syslog AS S';
|
||||
$sql .= ' WHERE '.$where;
|
||||
$sql .= ' WHERE '.$where . '1';
|
||||
}
|
||||
else {
|
||||
$sql = 'FROM syslog AS S, devices_perms AS P ';
|
||||
@@ -77,5 +77,6 @@ $output = array(
|
||||
'rowCount' => $rowCount,
|
||||
'rows' => $response,
|
||||
'total' => $total,
|
||||
'sql' => $sql,
|
||||
);
|
||||
echo _json_encode($output);
|
||||
|
Reference in New Issue
Block a user