mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
parent
1e9fa28433
commit
658fbd0584
@ -25,15 +25,9 @@ class IndexController extends ActionController
|
|||||||
public function preDispatch()
|
public function preDispatch()
|
||||||
{
|
{
|
||||||
parent::preDispatch(); // -> auth :(
|
parent::preDispatch(); // -> auth :(
|
||||||
$enabled = Icinga::app()->moduleManager()->listEnabledModules();
|
|
||||||
$default = array('docs', 'certificates');
|
|
||||||
if (count(array_diff($enabled, $default)) === 0) {
|
|
||||||
if ($this->action_name !== 'welcome') {
|
if ($this->action_name !== 'welcome') {
|
||||||
$this->_forward('welcome');
|
$this->_forward('welcome');
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$this->_forward('index', 'dashboard');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user