Good day,
I am developing a plugin to display reports for a user in Moodle 2.8.7. If I log in as the user's tutor or even as admin I am not able to access any of the user's result page (for instance with the assignment activity, I cannot see the individual user submission/feedback page).
I realize that it's the same for workshops and quiz. Is this the design of Moodle so that you cannot view another user's individual submission page as in the case of the assign activity.
For eg. I constructed the following link but there is no userid parameter that I can use to get the specific user in these activities:
$submission = "<a href=\"" . $CFG->wwwroot . "/mod/" . $record->assessmenttype . "/view.php?id=" . $record->assignmentid . "&action=view\">" . get_string('submission', 'report_myreport') . "</a>";
In my testing I found that in turnitintooltwo it has the ability to add the userid so I can get to the related user's submission page and this is what I would like to do for other activities such as assignment, quiz and workshop. The contruction of the turnitintooltwo link is like this:
$textlink = "<a href=\"" . $CFG->wwwroot . "/mod/" . $record->assessmenttype . "/view.php?id=" . $record->assignmentid . "&jumppage=grade&userid=" . $userid . "\" target=\"_blank\">" . get_string('feedback', 'report_myreport') . "</a>";
Is there anyone who has found a way to add the the userid parameter or is there another parameter that is used to access the related user's activity result pages as mentioned above?
Your help is highly appreciated.
Kind regards,
Japs,