ServiceObjectDashlet: show even if permissions...

...are only granted for sets and not for services
This commit is contained in:
Thomas Gelf 2017-08-07 09:55:01 +02:00
parent 7fd94fb5bd
commit 2acc6a2c07
1 changed files with 9 additions and 0 deletions

View File

@ -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');
}
}