diff options
Diffstat (limited to 'library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php')
-rw-r--r-- | library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php b/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php new file mode 100644 index 0000000..419859d --- /dev/null +++ b/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php @@ -0,0 +1,25 @@ +<?php + +namespace Icinga\Module\Director\Dashboard\Dashlet; + +class ApiUserObjectDashlet extends Dashlet +{ + protected $icon = 'lock-open-alt'; + + protected $requiredStats = array('apiuser'); + + public function getTitle() + { + return $this->translate('Icinga Api users'); + } + + public function getUrl() + { + return 'director/apiusers'; + } + + public function listRequiredPermissions() + { + return array('director/admin'); + } +} |