[Solved] how to get the currently logged in role symfony?


If I remember well, you can get roles in twig by doing {{ app.user && app.user.roles }} but you will get an array of roles.

Hope it helps.

14

solved how to get the currently logged in role symfony?