diff --git a/library/Icingadb/Widget/Detail/ObjectDetail.php b/library/Icingadb/Widget/Detail/ObjectDetail.php index 8160dcaa3..b2a6deaee 100644 --- a/library/Icingadb/Widget/Detail/ObjectDetail.php +++ b/library/Icingadb/Widget/Detail/ObjectDetail.php @@ -704,7 +704,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 affected dependent objects of this object.") + ) ]; } }