Admin authentication
hey i added ADMIN role to some users and i am creating an admin panel. for every path staring with /admin i want only admins to access it. how can i do it?
2 Replies
You can check their role at the level of the page you want to display only to admin role users. If they're not an admin, redirect them to another page.
Something like this
@şiar_619 If you want to do this TimTim way on server side layout, remember to add additional check on every children page or you gonna leak data.