From 658fbd05849c30d92dcd230982a001f226652cc1 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 27 Jun 2013 10:15:19 +0200 Subject: [PATCH] Forward index to welcome refs #4301 --- application/controllers/IndexController.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php index d1259aafe..f33e0888e 100644 --- a/application/controllers/IndexController.php +++ b/application/controllers/IndexController.php @@ -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 \ No newline at end of file +// @codingStandardsIgnoreEnd