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