mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
parent
858c015d4c
commit
b54bf35402
@ -86,12 +86,8 @@ class ConfigController extends Controller
|
||||
if ($this->firstAllowedAction === null) {
|
||||
throw new SecurityException($this->translate('No permission for application configuration'));
|
||||
}
|
||||
$action = $this->getTabs()->get($this->firstAllowedAction);
|
||||
if (substr($action->getUrl()->getPath(), 0, 7) === 'config/') {
|
||||
$this->forward($this->firstAllowedAction);
|
||||
} else {
|
||||
$this->redirectNow($action->getUrl());
|
||||
}
|
||||
|
||||
$this->redirectNow($this->getTabs()->get($this->firstAllowedAction)->getUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user