# Gradebook policy ## What the policy controls Open **Gradebook policy** (`/gradebook-policy`). This is an institution-wide time policy for editing marks, lesson content and dates or confirming lessons in a lecturer's own gradebook. The list distinguishes current, upcoming, expired and disabled policies. When no policy is active at the time of an operation, there is no additional policy time restriction. Workload ownership and action permissions are still checked. [Lecturer gradebook](/en/docs/grade-book) ## Set the effective period 1. Create a policy, for example “Enter marks during the teaching week”. A name is required, up to 255 characters. A new form proposes an enabled policy starting now. Set the effective start date and time. An optional end must be strictly later. An empty end makes the policy open-ended. 2. Choose a period basis. With `weekly`, the lesson date and the edit time must be in the same ISO calendar week (Monday–Sunday). With `monthly`, they must be in the same calendar month and year. The boundaries follow the calendar even when a teaching period or semester crosses into another week or month. 3. Optionally enable a lower or upper bound, or both. Anchor each to the start or end of the lesson and specify the offset **after** that moment. Minutes, hours and days are supported, up to 10,080 minutes (7 days), starting at zero. The lower bound is inclusive and the upper bound exclusive. The academic hour's start and duration determine the end. When the start time is unavailable, the relative bounds cannot be calculated, but the week or month is still checked. 4. Review the summary and save. Effective intervals of enabled policies cannot overlap. The next policy may start exactly when the previous one ends. To prepare an overlapping draft, disable it. Before changing or deleting a policy, check which policy will be active for lecturers. ## Apply exceptions in the institution's time zone An exception takes an Allow or Deny effect, start and end times and an optional reason of up to 500 characters. Its interval must fit entirely within the policy's effective period. The start is inclusive and the end exclusive. Evaluation uses the institution's time zone, falling back to UTC if unset. The exception applies at **the time the edit is attempted**. If both effects overlap, Deny takes precedence. An active Allow bypasses the week/month and relative bounds checks. It applies institution-wide to users who already have the relevant gradebook permission. This page has no individual student or department targeting. ## Example and troubleshooting For a Wednesday 10:00–11:30 lesson, choose weekly, open at class start plus 0 minutes and close at class end plus 2 hours. An edit is allowed at 10:00 and the window has closed at 13:30. To allow corrections for last week, a Friday 14:00–15:00 Allow exception opens past lessons to all eligible users for that hour. Check the intended audience before saving. A locked gradebook cell reports the reason, matched policy and time boundary where applicable. Check institution time, the effective period, lesson date, academic hour and active exceptions. Viewing requires `gradebook-policy.index`. Creating, editing and deleting require `gradebook-policy.global.manage`. No organizational scopes are declared. This rule does not grant editing in another lecturer's read-only gradebook or faculty permissions for excusing absences. [Gradebooks by lecturer](/en/docs/gradebooks-by-lecturer) · [Faculty gradebook](/en/docs/faculty-gradebook) ## Implementation references - [frontend-edusystems · GradebookPolicy/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/AssessmentAndGrading/GradebookPolicy/index.tsx) - [frontend-edusystems · GradebookPolicy/service.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/AssessmentAndGrading/GradebookPolicy/service.ts) - [backend-edusystems · routes/api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GradeBookPolicy/routes/api.php) - [backend-edusystems · Concerns/ValidatesGradeBookPolicy.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GradeBookPolicy/Http/Requests/Concerns/ValidatesGradeBookPolicy.php) - [backend-edusystems · Services/GradeBookPolicyWriter.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GradeBookPolicy/Services/GradeBookPolicyWriter.php) - [backend-edusystems · Services/GradeBookPolicyEvaluator.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GradeBookPolicy/Services/GradeBookPolicyEvaluator.php) - [backend-edusystems · Services/GradeBookService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/GradeBook/Services/GradeBookService.php)