diff --git a/library/Icingadb/Widget/Detail/ObjectDetail.php b/library/Icingadb/Widget/Detail/ObjectDetail.php index 31d3e7544..4b37225e5 100644 --- a/library/Icingadb/Widget/Detail/ObjectDetail.php +++ b/library/Icingadb/Widget/Detail/ObjectDetail.php @@ -702,7 +702,10 @@ protected function createAffectedObjects(): ?array return [ HtmlElement::create('h2', null, Text::create(t('Affected Objects'))), - new DependencyNodeList($affectedObjects) + (new DependencyNodeList($affectedObjects)) + ->setEmptyStateMessage( + t('You are not authorized to view the objects affected by this object.') + ) ]; } }