Closed prajjwalkapoor closed 3 weeks ago
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.
Is your feature request related to a problem? Please describe.
Some routes like
/admin/dashboard
must not be accessed by the user except an admin. Design anAdminProtectedRoute
component that will act as a wrapper to a page and redirect users to the home page if they don't have an admin role.For Example:
Task
admin
page folder and its component toAdminDashBoard
./admin
route toadmin/dashboard
and render theAdminDashBoard
page there.Developer Help
You can refer to the last tear contributor's PR. Significant work has already been done there.