From 5419d4428c86c488a43124f85e5407d7cbae6541 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:47 +0200 Subject: Adding upstream version 1.11.1. Signed-off-by: Daniel Baumann --- library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php') diff --git a/library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php b/library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php index 9dd9467..97ae746 100644 --- a/library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php +++ b/library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php @@ -3,12 +3,13 @@ namespace Icinga\Module\Director\Dashboard\Dashlet; use Exception; +use Icinga\Module\Director\Auth\Permission; class EndpointObjectDashlet extends Dashlet { protected $icon = 'cloud'; - protected $requiredStats = array('endpoint'); + protected $requiredStats = ['endpoint']; protected $hasDeploymentEndpoint; @@ -24,7 +25,7 @@ class EndpointObjectDashlet extends Dashlet public function listRequiredPermissions() { - return array('director/admin'); + return [Permission::ADMIN]; } protected function hasDeploymentEndpoint() -- cgit v1.2.3