From 1309e5167f00047dbf3865d2f5665527f5b449b0 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Tue, 7 May 2024 23:49:29 +0300 Subject: [PATCH] fix deleter access --- src/Filament/Pages/Deleter.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Filament/Pages/Deleter.php b/src/Filament/Pages/Deleter.php index bc3a0d3..1d7092c 100644 --- a/src/Filament/Pages/Deleter.php +++ b/src/Filament/Pages/Deleter.php @@ -31,6 +31,11 @@ class Deleter extends Page implements HasTable protected static string $view = 'zeus-tartarus::pages.deleter'; + public static function canAccess(): bool + { + return ! in_array(static::class, TartarusPlugin::get()->getDisabledResources()); + } + public static function getNavigationGroup(): ?string { return TartarusPlugin::get()->getLabel(__CLASS__);