Moodle Plugins directory: Lock Grades | Moodle.org

Lock Grades
local_lockgrades
is a local Moodle plugin that allows administrators to recursively lock or unlock a grade category, including all of 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.
Features
-
🔒 Recursive locking: Updates the
locked
,timemodified
, andlocktime
fields for all grade items under the selected category. -
🔓 Recursive unlocking: Resets
locked
andlocktime
to0
, preservingtimemodified
timestamps. -
🖥️ Simple interface: A user-friendly form in the Moodle admin interface for entering the
idnumber
and selecting the desired action. -
🔐 Secure access: Only users with the
moodle/site:config
capability (typically site administrators) can use the plugin. -
💾 Data integrity: Uses database transactions to ensure all updates are applied consistently.
Usage
-
Log in as a Moodle administrator.
-
Open the plugin interface at: https://your-moodle-site.local/local/lockgrades/index.php
-
Enter the
idnumber
of the grade category you wish to lock or unlock (e.g.,term1_finalgrades
). -
Click Lock Grades or Unlock Grades.
-
A success message will confirm the action.
Comments