ROCKVIEW UNIVERSITY SLPS — CAMPUS DIRECTOR GRANTED MODULE ACCESS V10

WHAT WAS FOUND
The latest uploaded source had a central Campus Director grant check in
shared/views/module_shell.php, but the shared module shell then applied
separate role-only restrictions to several module pages. In addition, the
Director menu used Staff catalogue keys as URL slugs. Two catalogue keys,
manage_campuses and manage_hods, do not have same-named module wrappers.

WHAT THIS PATCH CHANGES
- Normalises module catalogue keys to real route slugs:
  manage_campuses -> campus-directory
  manage_hods -> heads-of-department
  plus existing aliases for student management, past papers, attendance and
  e-logbook.
- Builds Director navigation only from active grants and existing module
  wrapper files. Administrative/security tools are excluded from delegation.
- Allows a Director who has a valid grant to load selected shared module pages
  that previously failed the extra page-level role check.
- Adds campus-scoped, read-only API support for:
  Campus Directory, Heads of Department/unit register, Student Management,
  and Practical Examinations.
- Director POST/mutation actions remain blocked in those APIs.

IMPORTANT SECURITY AND FUNCTIONAL LIMITS
This is not a blanket conversion of every SLPS API. Some modules have their
own APIs and data models, and must be individually adapted before a Director
can safely use them. This patch deliberately does not grant write access to
staff-only operations, account/security administration, system backup,
panel permissions, Data Expert administration, quiz authoring, or campus
account administration. Other granted modules may still require API-side
read-only/campus-scope integration.

INSTALLATION
1. Back up the live SLPS files and database.
2. Extract this ZIP into the SLPS application root and overwrite matching files.
3. Hard-refresh the Director browser session (Ctrl+F5), then sign out/in.
4. Test Campus Oversight, Campus Directory, Heads of Department, Student
   Management and Practical Examinations.
5. Check the browser network response if a module still reports access denied.
No database migration is included.
