CRITICAL story-role-based-access-control-organization-admin-002 5 pts
5
Story Points
Critical
Priority
Role-Based Access Control
Feature

User Story

As a Organization Administrator
I want to be prevented from accidentally navigating to screens that belong to other roles
So that I only interact with functionality appropriate for my role, and sensitive peer mentor or admin screens are not inadvertently accessible

Acceptance Criteria

  • Given a coordinator is authenticated, When they attempt to navigate to a route permitted only for admins, Then they are redirected to the no-access screen
  • Given a coordinator is on the no-access screen, When it renders, Then it displays a human-readable explanation and an option to contact support or switch roles
  • Given a coordinator navigates to a route they are permitted to access, When the route guard evaluates, Then navigation proceeds without interruption
  • Given the no-access config repository has a custom message for the blocked route, When the no-access screen renders, Then it displays that custom message rather than a generic one

Business Value

Preventing role boundary violations protects data integrity and user confidentiality. Coordinators must not access admin-level user management or billing screens, and peer mentors must not reach coordinator bulk registration flows. Robust route guarding is a MUST HAVE for all organizations in the pilot.