From a88d0fe3486918a502ef12ff58d0b08960695a2d Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 15 Aug 2023 16:24:47 +0200 Subject: [PATCH] Web: Method `hasAccessToSharedNavigationItem()` requires param #2 of type Config --- library/Icinga/Application/Web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index 3819b4856..268943ff8 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -246,7 +246,7 @@ class Web extends EmbeddedWeb if ($type === 'dashboard-pane') { $panes = array(); foreach ($config as $dashletName => $dashletConfig) { - if ($this->hasAccessToSharedNavigationItem($dashletConfig)) { + if ($this->hasAccessToSharedNavigationItem($dashletConfig, $config)) { // TODO: Throw ConfigurationError if pane or url is missing $panes[$dashletConfig->pane][$dashletName] = $dashletConfig->url; }