From 93f8297344cfdb2037f4646dc84046fbea851946 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 18 Aug 2015 11:28:02 +0200 Subject: [PATCH] ActionController: Give modules a chance to dynamically require auth --- library/Icinga/Web/Controller/ActionController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 70fab8b12..2787f961e 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -90,6 +90,7 @@ class ActionController extends Zend_Controller_Action $this->_helper = new ActionHelperBroker($this); $this->handlerBrowserWindows(); + $this->view->tabs = new Tabs(); $this->view->translationDomain = 'icinga'; $this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe'); $this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen'); @@ -106,12 +107,12 @@ class ActionController extends Zend_Controller_Action $this->_helper->layout()->disableLayout(); } + $this->prepareInit(); + if ($this->requiresLogin()) { $this->redirectToLogin(Url::fromRequest()); } - $this->view->tabs = new Tabs(); - $this->prepareInit(); $this->init(); }