
Lock Grades
- Moodle 4.0–5.1
- 更新 2025-10-24
Moodle plugin that allows administrators to recursively lock or unlock a grade category (grade items) along with all its subcategories and associated items, using an idnumber field as the identifier.
Lock Grades ( local_lockgrades )
local_lockgrades is a local Moodle plugin that allows administrators to recursively lock or unlock a grade category, including all its subcategories and associated grade items, based on a unique idnumber identifier.
This plugin is particularly useful for institutions that manage grade locking during reporting periods or final grading stages, ensuring consistency and security of grade data across courses.
What’s New in Version 1.6
⏰ Action scheduling:
Schedule locking or unlocking actions for a specific date and time. Tasks are executed automatically by Moodle’s cron (NEW).
👁️ Dry-run preview:
Preview all courses and grade items that would be affected by a lock or unlock operation before applying or scheduling the action (NEW).
📅 Task management table:
View, edit, duplicate, or delete scheduled actions in a unified, sortable table before execution (NEW).
🪝 Ancestral lock inheritance:
Newly created or updated grade items or categories automatically inherit the locked status if any ancestor category is locked (NEW).
📜 Unified action history:
All actions—immediate and scheduled—are logged in a single, filterable, expandable table, with details on affected categories and items (NEW).
🛡️ Enhanced security:
Access now restricted to users with the local/lockgrades:manage capability (NEW, replaces previous reliance on moodle/site:config ).
Features
🔒 Recursive locking:
Updates the locked , timemodified , and locktime fields for all grade items under the selected category.