mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
parent
07834361d0
commit
8154d433d4
@ -16,7 +16,9 @@ use Icinga\Security\SecurityException;
|
||||
use Icinga\Web\Controller;
|
||||
use Icinga\Web\UrlParams;
|
||||
use Icinga\Web\Widget;
|
||||
use ipl\Compat\Translator;
|
||||
use ipl\Html\Link;
|
||||
use ipl\Translation\TranslationHelper;
|
||||
use ipl\Web\Widget\ControlsAndContent;
|
||||
use ipl\Web\Controller\Extension\ControlsAndContentHelper;
|
||||
use ipl\Zf1\SimpleViewRenderer;
|
||||
@ -38,11 +40,17 @@ abstract class ActionController extends Controller implements ControlsAndContent
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->initializeTranslator();
|
||||
Benchmark::measure('Director base Controller init()');
|
||||
$this->checkForRestApiRequest();
|
||||
$this->checkDirectorPermissions();
|
||||
}
|
||||
|
||||
protected function initializeTranslator()
|
||||
{
|
||||
TranslationHelper::setTranslator(new Translator('director'));
|
||||
}
|
||||
|
||||
public function getAuth()
|
||||
{
|
||||
return $this->Auth();
|
||||
|
Loading…
x
Reference in New Issue
Block a user