diff --git a/app/Providers/Filament/AppPanelProvider.php b/app/Providers/Filament/AppPanelProvider.php index aa46e6efa6..39bfc50690 100644 --- a/app/Providers/Filament/AppPanelProvider.php +++ b/app/Providers/Filament/AppPanelProvider.php @@ -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'))