summaryrefslogtreecommitdiffstats
path: root/library/Director/Dashboard/Dashlet/ApiUserObjectDashlet.php
blob: 238059a39d1c6b9cf7015b37cd66e608818d8437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Icinga\Module\Director\Dashboard\Dashlet;

use Icinga\Module\Director\Auth\Permission;

class ApiUserObjectDashlet extends Dashlet
{
    protected $icon = 'lock-open-alt';

    protected $requiredStats = ['apiuser'];

    public function getTitle()
    {
        return $this->translate('Icinga Api users');
    }

    public function getUrl()
    {
        return 'director/apiusers';
    }

    public function listRequiredPermissions()
    {
        return [Permission::ADMIN];
    }
}