ROCKVIEW SLPS — THREE-MODULE CAMPUS DIRECTOR RELEASE V21

Modules added
1. Practical Guidelines (permission key practical-guidelines)
2. Practical Examinations (permission key practical-examinations)
3. News & Announcements (permission key campus-news)

Security
- Dedicated Campus Director-only route and GET-only API.
- Every API request requires an active module grant and active campus assignment.
- Practical examinations are scoped by practical_exams.campus_id. Only published candidate results are returned.
- Guidelines have no campus_id on courses in the existing schema. Course visibility is conservatively derived from active student enrolments at the assigned campus and department. Only published topics are returned. This is an inferred departmental association, not an explicit campus ownership field.
- News articles have a new campus_id field. Migration backfills from the owner's staff.campus_id/admins.campus_id. Unassigned news is not visible. New articles inherit the creator's campus where present.
- No authoring, editing, grading, publishing, deleting, or approval actions are exposed.
- News body is rendered as text in this Director workspace to avoid injecting arbitrary editor HTML.

Important migration
Apply slps/database/migrations/20261106_news_campus_scope.sql once after database backup. Existing news owned by users with no campus association remains campus_id NULL and must be deliberately assigned if it belongs to a campus.

Files
Updated:
slps/shared/lib/campus_director_access.php
slps/shared/lib/panel_permissions.php
slps/shared/views/module_shell.php
slps/shared/api/post_news.php
Added:
slps/shared/views/modules/campus-director-guidelines.php
slps/shared/views/modules/campus-director-examinations.php
slps/shared/views/modules/campus-director-news.php
slps/shared/api/campus_director_information.php
slps/shared/views/campus_director_guidelines_workspace.php
slps/shared/views/campus_director_exams_workspace.php
slps/shared/views/campus_director_news_workspace.php
slps/shared/js/campus-director-guidelines.js
slps/shared/js/campus-director-exams.js
slps/shared/js/campus-director-news.js
slps/shared/css/campus-director-three.css
slps/database/migrations/20261106_news_campus_scope.sql
slps/docs/CAMPUS_DIRECTOR_THREE_MODULES_V21.txt

Installation
1. Back up the SLPS files and database.
2. Apply 20261106_news_campus_scope.sql once.
3. Upload all package files preserving folder structure.
4. In Staff > Campus Director Access, grant the three new options to the relevant Director and save.
5. Sign out and back in as Campus Director, then hard-refresh.
6. Verify campus examination schedule, published guideline topics, and news.

Caveats
- Courses are shared in the existing database schema; no direct course-campus relation exists. Guidelines are therefore shown for departments with active students at the Director's campus. If course ownership must be explicitly campus-based, a future schema change is needed.
- Only published practical exam results are shown; candidate roster names/marks are not exposed before publication.
- News without an inferable owner campus remains hidden until assigned.
- This package has not been tested against the live database.

Validation
Local PHP syntax checks, JS syntax checks, and ZIP integrity are performed.
