webui: Do not show Config tab for devices set to be excluded from oxidized #4592 (#5029)

This commit is contained in:
Neil Lathwood
2016-11-21 06:45:24 +00:00
committed by GitHub
parent a8cc46935c
commit 2bf496b0b1

View File

@@ -334,7 +334,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) {
} // end if
}
if ($config['oxidized']['enabled'] === true && isset($config['oxidized']['url'])) {
if ($config['oxidized']['enabled'] === true && !in_array($device['type'], $config['oxidized']['ignore_types']) && isset($config['oxidized']['url'])) {
$device_config_file = true;
}
}