summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php')
-rw-r--r--library/Director/Dashboard/Dashlet/EndpointObjectDashlet.php5
1 files changed, 3 insertions, 2 deletions
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()