From 968a206dff4631e1ecc8a489f7884d08648113aa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:13:17 +0200 Subject: Adding upstream version 1.0.2. Signed-off-by: Daniel Baumann --- configuration.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 configuration.php (limited to 'configuration.php') diff --git a/configuration.php b/configuration.php new file mode 100644 index 0000000..46ecf5c --- /dev/null +++ b/configuration.php @@ -0,0 +1,26 @@ +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.. +} -- cgit v1.2.3