mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
ActionController: Give modules a chance to dynamically require auth
This commit is contained in:
parent
a6fb3d59f8
commit
93f8297344
@ -90,6 +90,7 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$this->_helper = new ActionHelperBroker($this);
|
$this->_helper = new ActionHelperBroker($this);
|
||||||
|
|
||||||
$this->handlerBrowserWindows();
|
$this->handlerBrowserWindows();
|
||||||
|
$this->view->tabs = new Tabs();
|
||||||
$this->view->translationDomain = 'icinga';
|
$this->view->translationDomain = 'icinga';
|
||||||
$this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe');
|
$this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe');
|
||||||
$this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen');
|
$this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen');
|
||||||
@ -106,12 +107,12 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$this->_helper->layout()->disableLayout();
|
$this->_helper->layout()->disableLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->prepareInit();
|
||||||
|
|
||||||
if ($this->requiresLogin()) {
|
if ($this->requiresLogin()) {
|
||||||
$this->redirectToLogin(Url::fromRequest());
|
$this->redirectToLogin(Url::fromRequest());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->tabs = new Tabs();
|
|
||||||
$this->prepareInit();
|
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user