summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/DatafieldDashlet.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Director/Dashboard/Dashlet/DatafieldDashlet.php')
-rw-r--r--library/Director/Dashboard/Dashlet/DatafieldDashlet.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/Director/Dashboard/Dashlet/DatafieldDashlet.php b/library/Director/Dashboard/Dashlet/DatafieldDashlet.php
index 03f2d8d..a381a3f 100644
--- a/library/Director/Dashboard/Dashlet/DatafieldDashlet.php
+++ b/library/Director/Dashboard/Dashlet/DatafieldDashlet.php
@@ -2,6 +2,8 @@
namespace Icinga\Module\Director\Dashboard\Dashlet;
+use Icinga\Module\Director\Auth\Permission;
+
class DatafieldDashlet extends Dashlet
{
protected $icon = 'edit';
@@ -25,6 +27,6 @@ class DatafieldDashlet extends Dashlet
public function listRequiredPermissions()
{
- return array('director/admin');
+ return [Permission::ADMIN];
}
}