2016-10-27 19:58:31 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
|
|
|
|
2023-02-22 11:46:24 +01:00
|
|
|
use Icinga\Module\Director\Auth\Permission;
|
|
|
|
|
2016-10-27 19:58:31 +02:00
|
|
|
class ApiUserObjectDashlet extends Dashlet
|
|
|
|
{
|
|
|
|
protected $icon = 'lock-open-alt';
|
|
|
|
|
2023-02-22 11:46:24 +01:00
|
|
|
protected $requiredStats = ['apiuser'];
|
2016-10-27 19:58:31 +02:00
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
2017-07-06 11:41:29 +02:00
|
|
|
return $this->translate('Icinga Api users');
|
2016-10-27 19:58:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getUrl()
|
|
|
|
{
|
2016-11-03 20:07:32 +01:00
|
|
|
return 'director/apiusers';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function listRequiredPermissions()
|
|
|
|
{
|
2023-02-22 11:46:24 +01:00
|
|
|
return [Permission::ADMIN];
|
2016-10-27 19:58:31 +02:00
|
|
|
}
|
|
|
|
}
|