SEC-A5
✓ Fully Implemented
Multi-Tenant System Concept, System Requirements & Supported Browsers/Devices
Detailed explanation of how multiple mosques operate independently within Kariahku.com, client system requirements, and supported browsers and devices.
Step-by-Step Instructions
1. Multi-Tenant System Concept
Within Kariahku.com, each registered mosque operates as an independent tenant uniquely identified by its database key mosque_id and public URL slug:
- Strict Tenant Data Partitioning: Every operational mosque table—including
mosque_users,mosque_settings,mosque_announcements,mosque_committees,mosque_editorial_items,mosque_activities,mosque_kariah_areas, andkariah_members—is scoped directly to the owningmosque_id. - Server-Side Tenant Authorization: When a Mosque Administrator accesses
/mosque-admin/*,require_mosque_permission()verifies an active assignment inmosque_usersfor that exact mosque. Any cross-tenant access attempt is rejected with HTTP403 Forbiddenand logged inaudit_logs. - Independent Tenant Billing: Each mosque maintains its own billing customer record (
billing_customers) and subscription lifecycle (subscriptions) without affecting other mosques.
2. System Requirements
- Network Connectivity: Broadband or mobile data connection (2 Mbps or higher recommended when uploading PDF/image attachments).
- Screen Resolution: Fully responsive across smartphones (360px+), tablets (768px+), and desktop monitors (1280px+).
- Browser Cookies: First-party session cookies (`HttpOnly`, `SameSite=Lax`) must be enabled for login sessions and CSRF protection.
3. Supported Browsers and Devices
- Desktop (Windows, macOS, Linux): Google Chrome (109+), Microsoft Edge (109+), Mozilla Firefox (115+), Apple Safari (16+).
- Mobile & Tablet: Chrome for Android 10+, Safari for iOS / iPadOS 15+.
- Printing & PDF: Native browser print (`Ctrl+P` / `Cmd+P`) and built-in PDF download for invoices, receipts, institutional reports, and user manual guides.
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Tenant Layer | Access Control Table | Data Boundary |
|---|---|---|
| Global Platform | user_roles + role_permissions | Platform-wide scope according to assigned global permissions. |
| Mosque Tenant | mosque_users (mosque_id) | Restricted strictly to records belonging to the authorized mosque. |
| MAIN Institution | institution_users + institution_state_access | Aggregate records of registered mosques within the verified state only. |
| JAKIM Institution | institution_users (nationwide) | Aggregate records of registered mosques across all 16 states/territories. |
Expected Results
Administrators and users understand how tenant boundaries protect mosque data and verify that their devices meet system requirements.
Important Notes & Data Boundaries: Kariahku.com enforces a strict Content Security Policy (`script-src 'self'; style-src 'self'`). Avoid browser extensions that inject unauthorized third-party scripts.
Common Errors & Troubleshooting
If a form submission fails with an invalid request or CSRF error, verify that first-party cookies are enabled in your browser and refresh the page.