-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathconfiguration.php
More file actions
46 lines (35 loc) · 1.28 KB
/
configuration.php
File metadata and controls
46 lines (35 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// SPDX-FileCopyrightText: 2019 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-3.0-or-later
namespace Icinga\Module\Reporting {
/** @var \Icinga\Application\Modules\Module $this */
$this->provideCssFile('system-report.css');
$this->menuSection(N_('Reporting'), ['icon' => 'fa-chart-simple', 'priority' => 100])
->add(N_('Reports'), ['url' => 'reporting/reports', 'priority' => 10]);
$this->provideConfigTab('backend', array(
'title' => $this->translate('Configure the database backend'),
'label' => $this->translate('Backend'),
'url' => 'config/backend'
));
$this->provideConfigTab('mail', array(
'title' => $this->translate('Configure mail'),
'label' => $this->translate('Mail'),
'url' => 'config/mail'
));
$this->providePermission(
'reporting/reports',
$this->translate('Allow managing reports')
);
$this->providePermission(
'reporting/schedules',
$this->translate('Allow managing schedules')
);
$this->providePermission(
'reporting/templates',
$this->translate('Allow managing templates')
);
$this->providePermission(
'reporting/timeframes',
$this->translate('Allow managing timeframes')
);
}