Skip to content

Commit

Permalink
fix deleter access
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed May 7, 2024
1 parent db1bff6 commit 1309e51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Filament/Pages/Deleter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down

0 comments on commit 1309e51

Please sign in to comment.