SEC-04C
✓ Fully Implemented
Government / Religious Authority Roles (MAIN & JAKIM) and Community Users
Complete documentation for State Islamic Religious Council (MAIN) and JAKIM institutional roles (administrator and report_viewer), registered kariah members, and general public users.
Step-by-Step Instructions
C. Community Users
1. Registered Kariah Members
- Role Description: Muslim residents who submitted a kariah membership application via
/kariah-registerand were approved by a Mosque Administrator intokariah_peopleandkariah_members. - Login & Access Process: Registered kariah members do not require or receive a system login account (
users). Kariah membership is a mosque-level community registry record. - Allowed Actions: Browse all public portal pages, mosque microsites (
/masjid/{slug}), prayer times, activity calendars, and submit kariah membership applications. - Privacy Protection: National IC numbers are never collected. Residential addresses and phone numbers are visible only to authorized Mosque Administrators of that specific mosque and are never exposed publicly or to MAIN/JAKIM dashboards.
2. General Public Users
- Role Description: Unauthenticated visitors browsing the platform.
- Available Modules: Homepage (
/), Mosque Directory (/mosques), Mosque Microsites (/masjid/{slug}), Activities (/activities), Prayer Times (/prayer-times), Mosque Registration (/register-mosque), Kariah Registration (/kariah-register), and the User Manual (/manual).
D. Government / Religious Authorities (institution_users Table)
Authority users are bound to an active institution record in institutions (main or jakim) via institution_users with one of two institutional roles:
1. Majlis Agama Islam Negeri (MAIN) Authorized Users — institution_type = 'main'
- Routes:
/{lang}/main/dashboard,/{lang}/main/reports, and/{lang}/main/subscription. - Institutional Sub-Roles:
administrator: Holds all 5 institutional permissions (dashboard.view,reports.view,reports.export,subscription.view,subscription.renew). Can generate renewal invoices and initiate checkout.report_viewer: Holdsdashboard.view,reports.view,reports.export, andsubscription.view(read/export reports and view billing only).
- Data Access Boundaries: Strictly restricted to states with a verified grant (
verified_by IS NOT NULL) ininstitution_state_access. MAIN institutions cannot be grantednationwidemode.
2. JAKIM Authorized Users — institution_type = 'jakim'
- Routes:
/{lang}/jakim/dashboard,/{lang}/jakim/reports, and/{lang}/jakim/subscription. - Institutional Sub-Roles: Supports
administratorandreport_viewer. - Data Access Boundaries: Requires
jurisdiction_mode = 'nationwide'and verified grants across all 16 Malaysian states and federal territories. Access is strictly limited to aggregate registered-mosque metrics; individual kariah member PII and sensitive financial modules are excluded.
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Institution Role | Granted Permissions | Capability Difference |
|---|---|---|
administrator | dashboard.view, reports.view, reports.export, subscription.view, subscription.renew | Can view/export aggregate reports and generate/pay subscription renewal invoices. |
report_viewer | dashboard.view, reports.view, reports.export, subscription.view | Can view/export aggregate reports and view billing status (cannot renew subscription). |
Expected Results
Users understand community access rules and the exact distinction between MAIN and JAKIM institutional roles.
Important Notes & Data Boundaries: Institutional dashboard and report access requires an active (`active`, `trialing`, or `grace_period`) institutional subscription.
Common Errors & Troubleshooting
If a MAIN or JAKIM user encounters "Institutional reporting requires an active subscription", an institutional administrator can still access /main/subscription or /jakim/subscription to renew and pay.