From a9b77c01caef9ae7a2c84e2333d28ceb028cf4d3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:43:29 +0200 Subject: Adding upstream version 1.3.0. Signed-off-by: Daniel Baumann --- configuration.php | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 configuration.php (limited to 'configuration.php') diff --git a/configuration.php b/configuration.php new file mode 100644 index 0000000..0147b89 --- /dev/null +++ b/configuration.php @@ -0,0 +1,46 @@ +getConfig(); + +$url = 'eventdb/events'; +if (($default_filter = $config->get('global', 'default_filter')) !== null) { + $url .= '?' . $default_filter; +} + +$section = $this->menuSection('EventDB', array( + 'icon' => 'tasks', + 'priority' => 200, + 'url' => $url, +)); + +$this->provideConfigTab('config', array( + 'title' => $this->translate('Configure EventDB'), + 'label' => $this->translate('Config'), + 'url' => 'config' +)); +$this->provideConfigTab('monitoring', array( + 'title' => $this->translate('Configure integration into the monitoring module'), + 'label' => $this->translate('Monitoring'), + 'url' => 'config/monitoring' +)); + +$this->providePermission( + 'eventdb/events', + $this->translate('Allow to view events') +); + +$this->providePermission( + 'eventdb/comments', + $this->translate('Allow to view comments') +); + +$this->providePermission( + 'eventdb/interact', + $this->translate('Allow to acknowledge and comment events') +); + +$this->provideRestriction( + 'eventdb/events/filter', + $this->translate('Restrict views to the events that match the filter') +); -- cgit v1.2.3