Skip to content

Commit

Permalink
Merge branch 'MDL-36897' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Dec 13, 2012
2 parents e733592 + 0fe1b50 commit aa3258d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/summary.php
Expand Up @@ -39,7 +39,7 @@
// Check that this attempt belongs to this user.
if ($attemptobj->get_userid() != $USER->id) {
if ($attemptobj->has_capability('mod/quiz:viewreports')) {
redirect($attemptobj->review_url(null, $page));
redirect($attemptobj->review_url(null));
} else {
throw new moodle_quiz_exception($attemptobj->get_quizobj(), 'notyourattempt');
}
Expand Down

0 comments on commit aa3258d

Please sign in to comment.