[P0] RBAC framework + Ministry Scope middleware #6

Open
opened 2026-05-26 01:32:39 +00:00 by ChrisChen · 0 comments
Owner

Overview

Role-Based Access Control with 13 predefined roles and Ministry Scope filtering so scoped roles only see their ministry's data.

Roles

super_admin, pastor, board_member, coworker_chair, ministry_leader, district_leader, cell_leader, coworker, finance, secretary, worship_leader, member, visitor

Tasks

  • Seed all 13 roles into DB via DbInitializer
  • Create UserMinistry join table (user -> ministry scope binding)
  • Build MinistryScope middleware that filters queries by caller's assigned ministries
  • Authorization policies per resource/action (see PLANNING.md Section 4 permission matrix)
  • Role assignment API (super_admin only)

Reference

PLANNING.md Section 3.2 RBAC, Section 4 Permission Matrix

## Overview Role-Based Access Control with 13 predefined roles and Ministry Scope filtering so scoped roles only see their ministry's data. ## Roles super_admin, pastor, board_member, coworker_chair, ministry_leader, district_leader, cell_leader, coworker, finance, secretary, worship_leader, member, visitor ## Tasks - [ ] Seed all 13 roles into DB via DbInitializer - [ ] Create UserMinistry join table (user -> ministry scope binding) - [ ] Build MinistryScope middleware that filters queries by caller's assigned ministries - [ ] Authorization policies per resource/action (see PLANNING.md Section 4 permission matrix) - [ ] Role assignment API (super_admin only) ## Reference PLANNING.md Section 3.2 RBAC, Section 4 Permission Matrix
ChrisChen added this to the Phase 0 - Tech Foundation and DevOps milestone 2026-05-26 01:32:39 +00:00
ChrisChen added the module: rbac label 2026-05-26 01:32:39 +00:00
Sign in to join this conversation.