From ff12f17d8286ee0d0d377a7f59d1aee7325d3ee6 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Wed, 3 Mar 2021 13:21:41 +0000 Subject: [PATCH] Fix undefined variable --- src/View/Components/Nav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Components/Nav.php b/src/View/Components/Nav.php index 675ef323241..5c73aa6aa11 100644 --- a/src/View/Components/Nav.php +++ b/src/View/Components/Nav.php @@ -28,7 +28,7 @@ public function __construct() } foreach (Filament::getPages() as $page) { - if ($resource::authorizationManager()->can()) { + if ($page::authorizationManager()->can()) { $this->items->push(...$page::navigationItems()); } }