Skip to content

Commit

Permalink
Fixes a bug introduced in V3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Carlos Rodríguez-del-Pino committed May 20, 2022
1 parent 32d77a1 commit 142cb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/evaluation.php
Expand Up @@ -38,8 +38,8 @@
if ($userid) {
$parms['userid'] = $userid;
}
$vpl->prepare_page( 'forms/evaluation.php', $parms);
$vpl = new mod_vpl( $id );
$vpl->prepare_page( 'forms/evaluation.php', $parms);
if ((! $userid || $userid == $USER->id) && $vpl->get_instance()->evaluate) { // Evaluate own submission.
$userid = $USER->id;
$vpl->require_capability( VPL_SUBMIT_CAPABILITY );
Expand Down

0 comments on commit 142cb61

Please sign in to comment.