busify
busify copied to clipboard
Create a AdminProtectedRoute component
Is your feature request related to a problem? Please describe.
Some routes like /admin/dashboard
should be protected if the user is not an admin. Design a component that will act as a wrapper to a page and redirects users to the home page if they don't have an admin role.
For Example:
<AdminProtectedRoute>
<AdminDashboard />
</AdminProtectedRoute>
Describe the solution you'd like
NA
Describe alternatives you've considered
No response
Developer Help
No response
I would like to work on this issue. I will simply create a AdminProtectedRoute component which will redirect the user to home page if they are not admin otherwise rendered the wrapped Component .
@parthksingh1 sure
@Pratik2026 I would like to work on this issue. I will create Admin Protected Route Component and will make sure to navigate it to home page if user is not admin
Sure @bravichandra12, you can start working on it.