diff --git a/library/Director/Dashboard/Dashlet/ServiceObjectDashlet.php b/library/Director/Dashboard/Dashlet/ServiceObjectDashlet.php index 4ff51765..01fb800c 100644 --- a/library/Director/Dashboard/Dashlet/ServiceObjectDashlet.php +++ b/library/Director/Dashboard/Dashlet/ServiceObjectDashlet.php @@ -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'); + } }