ROCKVIEW SLPS — CAMPUS DIRECTOR COMPLETE ACCESS AUDIT / V16

Audit findings
- Staff's catalogue contains 40 module keys, including system-wide and authoring tools.
- The generic shared/api/module.php endpoint includes broad datasets and staff write actions and did not enforce Campus Director grants/campus scope.
- Permission keys and page routes differ for several modules: manage_campuses -> campus-directory; manage_hods -> heads-of-department; manage-unit-projects -> campus-director-projects.
- The prior menu silently skipped missing/mismatched destinations.

V16 changes
- Establishes a single explicit delegated-module registry.
- Only modules with a dedicated Campus Director page/API and campus-scoped read-only enforcement are grantable:
  * Campus Management (manage_campuses)
  * Heads of Department (manage_hods)
  * Unit Projects & Progress (manage-unit-projects)
  * Student Management (manage-all-students)
  * Practical Examinations (practical-examinations)
- Staff access API lists only those supported modules and rejects unsupported keys.
- Existing unsupported grant rows are NOT deleted. They are not shown or accepted for access until secure Director implementations are built.
- Module shell rejects unsupported routes for Campus Directors.
- Generic module API explicitly denies Campus Director requests to prevent unscoped reads/writes.
- Navigation is built from active grants and actual wrapper files.

Install
1. Back up all four PHP files.
2. Upload the four PHP files from this patch to the exact paths, preserving folders.
3. No database migration is required.
4. Sign out/in as Staff and open Campus Director Access. Re-save grants using supported modules.
5. Sign in as Director and verify granted links and campus-specific records.

Scope
This is a secure correction for the five delegated modules listed above, not a claim that all 40 catalogue modules are already implemented for Campus Directors. Remaining modules need dedicated read-only pages and campus-filtered APIs before safe delegation. No existing grant records are deleted.

Validation
PHP syntax and ZIP integrity checked locally. Live database/browser integration tests have not been run.
