I'm facing some difficulties when trying to access my authenticated user's data in AdminPanelProvider.
In my specific case I want to use Filament Debugger plugin (that adds panels to Telescope, Horizon and Pulse) only for super_admin role from Shield, but examples like "display Birthday Panel" would be more than enough if anyone has one!
The code I'm trying with is:
$panel->plugin(DebuggerPlugin::make())
Which is working for all users, but when I try to wrap it in
auth()->user()?->hasRole('super_admin')
condition, it always returns Null and panel is never available. I've tried to dd() a couple options, but nothing worked