SEC-12B · Section 12: Majlis Agama Islam Negeri (MAIN) Dashboard
✓ Fully Implemented
Understanding MAIN Data Access Restrictions & State Subscription Billing (/main/subscription)
Detailed explanation of state jurisdiction enforcement for MAIN users, kariah privacy boundaries, and managing state institutional subscriptions at /main/subscription.
1. Understanding State Authority Data Access Restrictions
Kariahku.com enforces four server-side data boundary rules for all MAIN users:
- Verified State Scope Only: `institution_scope_filter()` restricts every SQL query to `mosques.state_id` values explicitly verified (`verified_by IS NOT NULL`) in `institution_state_access` for that MAIN institution.
- No Nationwide Escalation: `main` institutions cannot be configured with `jurisdiction_mode = 'nationwide'` and cannot access `/jakim/*` routes or `national_allowed`-only reports.
- Aggregate Reporting & PII Protection: MAIN reports expose aggregate mosque and activity metrics only. Individual kariah member names, phone numbers, and home addresses (`kariah_people`) are never exposed to institutional dashboards.
- Platform Coverage Disclosure: Exported CSV and PDF reports explicitly state that metrics reflect Kariahku.com registered mosque records only; not a census of all mosques in Malaysia.
2. Managing MAIN Subscriptions & Invoices (/main/subscription)
- Open
/{lang}/main/subscription. - Users with the institutional
administratorrole can select themain-standardplan, choosemonthly(RM 500.00) orannual(RM 5,400.00 with 10% discount), and click Generate Renewal Invoice. - Even if reporting access expires, `/main/subscription` and invoice PDF downloads remain accessible so the institution can complete renewal payment.
Input Fields & Options Reference
| Governance Attribute | MAIN Enforcement Rule |
|---|---|
institution_type | main |
jurisdiction_mode | state (`nationwide` mode is rejected by `institution_nationwide_scope_valid()`) |
| Permitted Reports | Only reports with `state_allowed = 1` and `enabled = 1` in `report_module_registry`. |
Expected Results: MAIN users understand state data boundaries and can manage their institutional subscription renewals smoothly.
Important Notes & Data Boundaries: Institutional `report_viewer` users can view `/main/subscription` and download invoice PDFs, while only `administrator` users hold `subscription.renew`.
Common Errors & Troubleshooting
If your MAIN institution shows "No verified state jurisdiction is configured", ask a Platform Super Admin to verify your state grant at /admin/institutions.