From e6d4dfc040bbe3cb80a2ce65b82493b557f751fc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:48 +0200 Subject: Merging upstream version 1.11.1. Signed-off-by: Daniel Baumann --- library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php') diff --git a/library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php b/library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php index 45bcfa2..c9fbb68 100644 --- a/library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php +++ b/library/Director/Dashboard/Dashlet/ScheduledDowntimeApplyDashlet.php @@ -2,6 +2,8 @@ namespace Icinga\Module\Director\Dashboard\Dashlet; +use Icinga\Module\Director\Auth\Permission; + class ScheduledDowntimeApplyDashlet extends Dashlet { protected $icon = 'plug'; @@ -15,7 +17,7 @@ class ScheduledDowntimeApplyDashlet extends Dashlet public function listRequiredPermissions() { - return array('director/scheduled-downtimes'); + return [Permission::SCHEDULED_DOWNTIMES]; } public function getUrl() -- cgit v1.2.3