Skip to content

Commit

Permalink
update visible check for "admin" menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Oct 29, 2024
1 parent 52789f8 commit ee39315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/Filament/AppPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function panel(Panel $panel): Panel
->url('/admin')
->icon('tabler-arrow-forward')
->sort(5)
->visible(fn (): bool => auth()->user()->isRootAdmin()),
->visible(fn (): bool => auth()->user()->canAccessPanel($panel)),
])
->favicon(config('app.favicon', '/pelican.ico'))
->brandName(config('app.name', 'Pelican'))
Expand Down

0 comments on commit ee39315

Please sign in to comment.