ServiceObjectDashlet: show even if permissions...
...are only granted for sets and not for services
This commit is contained in:
parent
7fd94fb5bd
commit
2acc6a2c07
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
||||
|
||||
use Icinga\Module\Director\Acl;
|
||||
|
||||
class ServiceObjectDashlet extends Dashlet
|
||||
{
|
||||
protected $icon = 'services';
|
||||
|
@ -22,4 +24,11 @@ class ServiceObjectDashlet extends Dashlet
|
|||
{
|
||||
return ['director/services'];
|
||||
}
|
||||
|
||||
public function isAllowed()
|
||||
{
|
||||
$acl = Acl::instance();
|
||||
return $acl->hasPermission('director/services')
|
||||
|| $acl->hasPermission('director/service_sets');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue