Enhancement in Moodle Plugin - required to be done in 3 hours from now

Job ID: 31528670

Budget: $30 – $60 USD

We have developed a Moodle plugin. The plugin sets a restriction to access the resource (questionnaire, forum, quiz, ...etc) when a certain application is launched that does facial recognition. THe problem we have is that the restriction is applied for 10 mins. That means if the student is in the questionnaire for 10 mins and he is taking more questions, he is kicked out of the questionnaire and is forced to go through the restriction again.
On the other hand, if he finished in 1 minute, the restriction is removed for 10 mins for this resource
What we want is the following:
- As long as the student is in the resource, or taking questionnaire, the restriction for this resource is removed
- As soon as he leaves this resource, or submit his answer, the restriction comes back

We will give you the PHP code and would like you to finish this in 2-3 hours. This is a modification, not something new
Related categories: PHP MySQL Moodle