HIGH story-role-based-access-control-organization-admin-005 5 pts
5
Story Points
High
Priority
Role-Based Access Control
Feature

User Story

As a Organization Administrator
I want to switch between my coordinator and peer mentor roles within the same session without logging out
So that I can register my own peer mentor activities while also performing coordinator duties, using a single app session

Acceptance Criteria

  • Given a user holds both coordinator and peer mentor roles, When they open the role switch widget, Then both roles are listed as selectable options
  • Given a user selects the peer mentor role from the switch widget, When the switch completes, Then the home screen, bottom nav, and all role-gated UI elements update to peer mentor context
  • Given a user holds only one role, When they open the role switch widget, Then no switch option is shown and the widget informs them of their single role
  • Given a role switch is in progress, When the user navigates away, Then the switch completes or rolls back cleanly without leaving the UI in an inconsistent state
  • Given a user with accessibility needs uses the role switch widget, When it renders, Then all interactive elements have proper semantic labels and focus management is correct

Business Value

In smaller chapters, the same volunteer often acts as both peer mentor and coordinator. Requiring them to log out and back in to switch context creates friction that leads to underreporting. Seamless role switching directly addresses the organizations' top priority of minimizing registration effort.