Skip to content

Create Role-Based Admin Access Control #92

Description

@MRIARC-08

Implement frontend role checking for admin features:

Backend Status: ✅ RBAC middleware ready

Frontend Work Required:

  • Check user role on admin routes
  • Redirect non-admins to dashboard
  • Show admin-only UI elements
  • Admin menu in navigation
  • Protected admin pages

Components to Create:

  • src/components/AdminGuard.tsx - Route protection wrapper
  • src/components/AdminNav.tsx - Admin navigation menu
  • Middleware for admin routes

Integration Points:

  • Check user role from session
  • Use middleware to protect routes
  • Redirect to dashboard if unauthorized

Expected Outcome: Secure admin-only interface.

Related to backend: Auth & RBAC

This is a GSSoC'26 contribution opportunity!

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions