User in admin panel

Hello, how can i access the auth()-> user() inside a panel. i tried with callback function and it still doesn t work. Could you help me? I want to verify if user hasRole() to make a custom navigation, i use modules .
Was this page helpful?