The is_tutor method of the various turnitin_*.class.php classes is currently passed a course context, this does not account for cases where a module has locally assigned roles. As an example:
Create a test course
Enrol some test students
Enrol a user at the course level as a student (to later be given locally assigned teacher role)
Create a test assignment, enabling Turnitin
submit a test assignment as a student and wait for the Turnitin report to be generated
Within the assignment, click the settings gear and select Locally assigned roles
Select Teacher
Search for the test user in step 3
select the user and click add
Login as the test teacher
Navigate to the assignment and view all submissions
Expected outcome: All submissions and Turnitin similarity scores should appear
Actual outcome: only the assignment submissions appear, no Turnitin details are displayed
The
is_tutor
method of the variousturnitin_*.class.php
classes is currently passed a course context, this does not account for cases where a module has locally assigned roles. As an example:Expected outcome: All submissions and Turnitin similarity scores should appear Actual outcome: only the assignment submissions appear, no Turnitin details are displayed