diff options
Diffstat (limited to 'library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php')
-rw-r--r-- | library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php b/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php index 419859d..238059a 100644 --- a/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php +++ b/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php @@ -2,11 +2,13 @@ namespace Icinga\Module\Director\Dashboard\Dashlet; +use Icinga\Module\Director\Auth\Permission; + class ApiUserObjectDashlet extends Dashlet { protected $icon = 'lock-open-alt'; - protected $requiredStats = array('apiuser'); + protected $requiredStats = ['apiuser']; public function getTitle() { @@ -20,6 +22,6 @@ class ApiUserObjectDashlet extends Dashlet public function listRequiredPermissions() { - return array('director/admin'); + return [Permission::ADMIN]; } } |