diff --git a/html/pages/device.php b/html/pages/device.php index 2db2c1edf..0d32ee9b7 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -183,7 +183,7 @@ echo('
  • -if($_SESSION['userlevel'] >= "5") { +if($_SESSION['userlevel'] >= "7") { if(!is_array($config['rancid_configs'])) { $config['rancid_configs'] = array($config['rancid_configs']); } foreach($config['rancid_configs'] as $configs) { if ($configs[strlen($configs)-1] != '/') { $configs .= '/'; } @@ -199,7 +199,7 @@ if($device_config_file) { '); } -if($_SESSION['userlevel'] >= "5") { +if($_SESSION['userlevel'] >= "7") { echo('
  • Settings diff --git a/html/pages/device/edit.inc.php b/html/pages/device/edit.inc.php index f23108274..306cf580a 100644 --- a/html/pages/device/edit.inc.php +++ b/html/pages/device/edit.inc.php @@ -1,11 +1,11 @@ "5") { + if($_SESSION['userlevel'] > "7") { include("includes/device-edit.inc.php"); } }