summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/UsersDashlet.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Director/Dashboard/Dashlet/UsersDashlet.php')
-rw-r--r--library/Director/Dashboard/Dashlet/UsersDashlet.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/Director/Dashboard/Dashlet/UsersDashlet.php b/library/Director/Dashboard/Dashlet/UsersDashlet.php
index 43ddc26..4f0c7d7 100644
--- a/library/Director/Dashboard/Dashlet/UsersDashlet.php
+++ b/library/Director/Dashboard/Dashlet/UsersDashlet.php
@@ -2,11 +2,13 @@
namespace Icinga\Module\Director\Dashboard\Dashlet;
+use Icinga\Module\Director\Auth\Permission;
+
class UsersDashlet extends Dashlet
{
protected $icon = 'users';
- protected $requiredStats = array('user', 'usergroup');
+ protected $requiredStats = ['user', 'usergroup'];
public function getTitle()
{
@@ -15,7 +17,7 @@ class UsersDashlet extends Dashlet
public function listRequiredPermissions()
{
- return array('director/users');
+ return [Permission::USERS];
}
public function getUrl()