summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.php')
-rw-r--r--configuration.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/configuration.php b/configuration.php
new file mode 100644
index 0000000..46ecf5c
--- /dev/null
+++ b/configuration.php
@@ -0,0 +1,26 @@
+<?php
+
+/* Icinga Web 2 | (c) 2018 Icinga Development Team | GPLv2+ */
+
+/** @var $this \Icinga\Application\Modules\Module */
+
+$this->provideConfigTab('config', [
+ 'url' => 'config',
+ 'title' => $this->translate('Configuration')
+]);
+
+$this->providePermission('audit/log', $this->translate('Allow access to the audit log'));
+
+try {
+ if ($this->getConfig()->get('log', 'type') === 'file') {
+ $section = $this->menuSection(N_('Reporting'));
+ $section->add(N_('Audit Log'), [
+ 'permission' => 'audit/log',
+ 'url' => 'audit/log',
+ 'icon' => 'eye',
+ 'priority' => 910
+ ]);
+ }
+} catch (Exception $e) {
+ // This pops up again sooner or later anyway..
+}