mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Oxidized Config tab showing when Device OS or Device Type is disabled (#13809)
* Fix Oxidized Config tab showing when Device OS or Device Type is disabled Fixes https://github.com/librenms/librenms/issues/13808 * StyleCI * Apply Jellyfrogs suggestion to simplify the code
This commit is contained in:
@@ -71,8 +71,10 @@ class ShowConfigController extends Controller implements DeviceTab
|
||||
private function oxidizedEnabled(Device $device)
|
||||
{
|
||||
return Config::get('oxidized.enabled') === true
|
||||
&& Config::has('oxidized.url')
|
||||
&& $device->getAttrib('override_Oxidized_disable') !== 'true';
|
||||
&& Config::has('oxidized.url')
|
||||
&& $device->getAttrib('override_Oxidized_disable') !== 'true'
|
||||
&& ! in_array($device->type, Config::get('oxidized.ignore_types', []))
|
||||
&& ! in_array($device->os, Config::get('oxidized.ignore_os', []));
|
||||
}
|
||||
|
||||
private function getRancidPath()
|
||||
|
Reference in New Issue
Block a user