Skip to content

Restrict dashboard access based on user role#373

Merged
Solomonsolomonsolomon merged 1 commit intoNoshonNetworks:developfrom
manoahLinks:role
Jul 3, 2025
Merged

Restrict dashboard access based on user role#373
Solomonsolomonsolomon merged 1 commit intoNoshonNetworks:developfrom
manoahLinks:role

Conversation

@manoahLinks
Copy link
Contributor

  • Add roleGuard middleware to enforce role-based access control on dashboard routes
  • Users can only access dashboard routes matching their assigned role
  • Returns 403 Forbidden for unauthorized access attempts

Closes #362

Detailed Information


Related Issues

Closes #


Type of Change

  • 🐛 Bug fix or ⚙️ enhancement
  • ✨ New feature or Chore (change with no new features or fixes)
  • 📚 Documentation update

Checklist (select as many as applicable)

  • The code follows the style guidelines of this project.
  • All new and existing tests pass.
  • This pull request is ready to be merged and reviewed.

- Add roleGuard middleware to enforce role-based access control on dashboard routes
- Users can only access dashboard routes matching their assigned role
- Returns 403 Forbidden for unauthorized access attempts

Closes NoshonNetworks#362
@fishonamos
Copy link
Member

fishonamos commented Jul 3, 2025

Great one!. @Solomonsolomonsolomon Kindly review

@Solomonsolomonsolomon
Copy link
Contributor

LGTM!!

@Solomonsolomonsolomon Solomonsolomonsolomon merged commit d523eca into NoshonNetworks:develop Jul 3, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restrict Dashboard Access Based on User Role

3 participants