Skip to content

Commit

Permalink
Merge pull request #29 from lara-zeus/fix-deleter-acl
Browse files Browse the repository at this point in the history
fix deleter access
  • Loading branch information
atmonshi authored May 7, 2024
2 parents db1bff6 + 1309e51 commit 73df074
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 73df074

Please sign in to comment.