SEC-04E · Section 4: User Roles and Permissions
✓ Fully Implemented
Role-Permission Matrix & Managing Permissions at /admin/permissions
Step-by-step guide to inspecting and updating the role-permission matrix at /admin/permissions, with a complete reference table of all global and mosque permissions.
1. Viewing the Live Role-Permission Matrix
- Open the dedicated Role & Permission Matrix page at
/{lang}/manual/rolesin this Help Center to inspect the live matrix queried directly from the database. - To modify role permissions, sign in as a Super Admin and click Permissions in the admin sidebar (
/{lang}/admin/permissions).
2. Updating Role Permissions at /admin/permissions
- In the matrix table on
/admin/permissions, each row represents a permission code and each column represents a role (super_admin,portal_admin,mosque_admin,mosque_editor,mosque_member). - Notice that checkboxes under the Super Admin column are checked and locked (
disabled) becausesuper_adminpermanently holds all permissions. - Check or uncheck permissions for the remaining roles as required by your governance policy.
- Click Save at the bottom of the form.
- The system updates
role_permissionsinside a database transaction and writes apermissions.updatedrecord toaudit_logs.
Input Fields & Options Reference
| Permission Code | Scope | Controlled Capability |
|---|---|---|
portal.access | Global | Baseline access to portal administration views. |
users.manage | Global | Manage user account status and global roles at /admin/users. |
mosques.review | Global | Review, approve, or reject mosque registration applications at /admin/mosques. |
mosques.manage | Global | Edit mosque records and suspend/reactivate mosques at /admin/mosques. |
portal.content.manage | Global | Manage trilingual CMS pages and announcements at /admin/cms. |
platform.dashboard.view | Global | View platform-wide metrics at /admin/dashboard. |
reports.platform.view | Global | View platform summary reports at /admin/reports. |
reports.content.view | Global | View content and activity metrics at /admin/reports. |
audit.view | Global | Inspect security audit logs at /admin/dashboard and /admin/reports. |
permissions.manage | Global | Modify role permissions at /admin/permissions. |
portal.activities.feature | Global | Manage activity categories and featured portal activities. |
subscriptions.manage | Global | Manage subscription plans, prices, discounts, and lifecycle overrides at /admin/subscriptions. |
payments.manage | Global | Manage payment gateways, verify manual transfers, and view revenue reports at /admin/payments. |
institutions.manage | Global | Create and verify MAIN and JAKIM institutions at /admin/institutions. |
manual.manage | Global | Manage User Manual categories, trilingual articles, screenshots, and FAQs at /admin/manual. |
mosque.access | Mosque | Access the mosque tenant workspace at /mosque-admin. |
mosque.manage | Mosque | Manage mosque profile, microsite, committee, activities, prayer zone, staff, and kariah members. |
mosque.publish | Mosque | Publish mosque announcements and editorial items. |
subscriptions.view | Mosque | View and pay mosque subscription invoices at /mosque-admin/subscription. |
kariah.members.export | Mosque | Export the mosque kariah member directory to CSV at /mosque-admin/kariah-members?export=csv. |
Expected Results: Permission updates take effect immediately on the next request and are recorded in `audit_logs`.
Important Notes & Data Boundaries: The `super_admin` role is hard-protected so administrators can never accidentally lock themselves out of permission management.
Common Errors & Troubleshooting
If a user does not see newly granted links right away, ask them to refresh their browser page.