Locking out Tutors from assignments

Locking out Tutors from assignments

by Jenny McCann -
Number of replies: 2

Version: Moodle 3.4 (Build: 20171113)

Hello, I was after some advice.

I want to offer Tutors grading on a first come, first served basis.

This means that if a Tutor is grading an assignment, I want to lock other Tutors out from grading.

Further to that, I'd like to release that assignment back for grading if it is not done within an hour of being locked.

What would be the best way to go about this? I can get some custom coding done of course, but not quite sure where to start.

Many thanks

Average of ratings: -
In reply to Jenny McCann

Re: Locking out Tutors from assignments

by Olumuyiwa Taiwo -
Picture of Plugin developers

You could have a custom plugin listen to the grading_form_viewed and the submission graded events.

In reply to Jenny McCann

Re: Locking out Tutors from assignments

by Daniel Thies -
Picture of Core developers Picture of Plugin developers Picture of Testers

If you are using one of the advance grading methods and want to modify that, you could change the create_instance method to look for other incomplete instances created in the last hour in the database and fail if it finds one.