ConfigMenu: Add missing application_log entry

fixes #4824
This commit is contained in:
Johannes Meyer 2022-06-15 08:34:08 +02:00
parent 96460a2027
commit 457eb52e2c
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ namespace Icinga\Web\Navigation;
use Icinga\Application\Hook\HealthHook;
use Icinga\Application\Icinga;
use Icinga\Application\Logger;
use Icinga\Authentication\Auth;
use ipl\Html\Attributes;
use ipl\Html\BaseHtmlElement;
@ -97,6 +98,14 @@ class ConfigMenu extends BaseHtmlElement
]
]
];
if (Logger::writesToFile()) {
$this->children['system']['items']['application_log'] = [
'label' => t('Application Log'),
'url' => 'list/applicationlog',
'permission' => 'application/log'
];
}
}
protected function assembleUserMenuItem(BaseHtmlElement $userMenuItem)