parent
1e9fa28433
commit
658fbd0584
|
@ -25,14 +25,8 @@ class IndexController extends ActionController
|
|||
public function preDispatch()
|
||||
{
|
||||
parent::preDispatch(); // -> auth :(
|
||||
$enabled = Icinga::app()->moduleManager()->listEnabledModules();
|
||||
$default = array('docs', 'certificates');
|
||||
if (count(array_diff($enabled, $default)) === 0) {
|
||||
if ($this->action_name !== 'welcome') {
|
||||
$this->_forward('welcome');
|
||||
}
|
||||
} else {
|
||||
$this->_forward('index', 'dashboard');
|
||||
if ($this->action_name !== 'welcome') {
|
||||
$this->_forward('welcome');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,4 +38,4 @@ class IndexController extends ActionController
|
|||
}
|
||||
}
|
||||
|
||||
// @codingStandardsIgnoreEnd
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
|
Loading…
Reference in New Issue