ROCKVIEW UNIVERSITY SLPS — CAMPUS DIRECTOR UPDATE V2

WHAT THIS UPDATE CORRECTS
1. Rebuilds Campus Director Access Management with a responsive, structured permissions form and access register.
2. Staff can select an existing Director and campus; the previously saved module selections are loaded automatically.
3. Staff can use Edit access, change checkboxes, and save. Saving updates the existing permission set; no revoke-first step is required.
4. The access register displays the active delegated module names for each Director.
5. Revoking one campus no longer revokes the Director's module grants when another campus assignment remains active. Module grants are disabled only when the Director has no active campus assignments.
6. Campus Oversight is always present in the Director navigation when at least one active campus assignment exists. The previous menu filtering removed this essential link.
7. Direct module-page requests by Campus Directors are checked against the module grant table.
8. Rebuilds the Director dashboard as a professional campus governance interface with KPI cards, campus summaries, unit register, project register, progress bars and responsive tables.
9. Rewrites dashboard aggregates to avoid inflated counts caused by joining unit members and project assignments in one aggregate query.
10. Does not modify the IQ Quiz API or authoring workflow.

DEPLOYMENT
- Back up the live SLPS files and database first.
- This is a V2 replacement patch. Extract the ZIP into the SLPS root and preserve the folder structure, overwriting only the listed files.
- The V1 database migration remains required: slps/database/migrations/20261105_campus_director_access.sql. Do not run it again if both tables already exist.
- Ensure the account role campus_director is accepted by the live authentication/account provisioning layer. The original source archive did not include a complete account-role provisioning workflow for this role.
- Sign in as Staff, open Campus Director Access, select an existing Campus Director and campus. Edit access loads the saved checkboxes. Save the updated selection.
- Sign in as the Director and open Campus Oversight. The API resolves campus scope from active database grants; it does not accept a campus ID supplied by the Director.

IMPORTANT SECURITY / INTEGRATION NOTE
The checkbox list is sourced from the existing panel link catalogue. A granted link is visible only after the grant is saved. The module shell now enforces the grant for page navigation. However, some legacy module APIs independently enforce their own role rules or return institution-wide records. Those APIs must be individually updated with Campus Director role support and campus-level filtering before those modules are used for operational data access. Do not grant sensitive or institution-wide modules until their API scope has been reviewed. The Campus Oversight dashboard included here is read-only and campus-scoped.

VALIDATION
PHP syntax checks passed for the modified PHP files; JavaScript syntax checks passed. This patch has not been connected to the live database or browser-tested on the production server. Confirm the role, schema migration, paths and permissions on a staging copy before production deployment.
