diff --git a/html/pages/locations.php b/html/pages/locations.php index cd03b26bc..2a0cce7da 100644 --- a/html/pages/locations.php +++ b/html/pages/locations.php @@ -1,7 +1,7 @@ '); -if($_SESSION['userlevel'] == '10') { +if($_SESSION['userlevel'] >= '5') { $sql = "SELECT `location` FROM `devices` GROUP BY `location` ORDER BY `location`"; } else { $sql = "SELECT `location` FROM `devices` AS D, devices_perms AS P WHERE D.device_id = P.device_id AND P.user_id = '" . $_SESSION['user_id'] . "' GROUP BY `location` ORDER BY `location`"; diff --git a/html/pages/services.php b/html/pages/services.php index 9ddde875e..e089a7367 100644 --- a/html/pages/services.php +++ b/html/pages/services.php @@ -5,7 +5,7 @@ if($_GET['status'] == '0') { $where = " AND service_status = '0'"; } else { unse echo("
| Device | Service | Status | Changed | Checked | Message |