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/ServiceApplyRulesDashlet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'library/Director/Dashboard/Dashlet/ServiceApplyRulesDashlet.php') diff --git a/library/Director/Dashboard/Dashlet/ServiceApplyRulesDashlet.php b/library/Director/Dashboard/Dashlet/ServiceApplyRulesDashlet.php index b4bee04..487be02 100644 --- a/library/Director/Dashboard/Dashlet/ServiceApplyRulesDashlet.php +++ b/library/Director/Dashboard/Dashlet/ServiceApplyRulesDashlet.php @@ -2,6 +2,8 @@ namespace Icinga\Module\Director\Dashboard\Dashlet; +use Icinga\Module\Director\Auth\Permission; + class ServiceApplyRulesDashlet extends Dashlet { protected $icon = 'resize-full-alt'; @@ -26,6 +28,6 @@ class ServiceApplyRulesDashlet extends Dashlet public function listRequiredPermissions() { - return array('director/admin'); + return [Permission::ADMIN]; } } -- cgit v1.2.3