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/UsersDashlet.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'library/Director/Dashboard/Dashlet/UsersDashlet.php') 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() -- cgit v1.2.3