Skip to content

Commit

Permalink
canAccessPanel remove can Access Panel, use shield or implement it on…
Browse files Browse the repository at this point in the history
… your user model
  • Loading branch information
atmonshi committed Aug 22, 2024
1 parent 42fe475 commit bb4c6e8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Models/Concerns/ForFilament.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@

trait ForFilament
{
public function canAccessPanel(Panel $panel): bool
{
return true;

/*if ($panel->getId() === 'admin') {
return $this->email === '[email protected]';
}
return true;*/
}

public function getTenants(Panel $panel): array | Collection
{
return $this->allCompanies();
Expand Down

0 comments on commit bb4c6e8

Please sign in to comment.