mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-36897 quiz review: fixup previous commit.
This commit is contained in:
parent
609a7676e4
commit
0fe1b50c29
@ -39,7 +39,7 @@ require_login($attemptobj->get_course(), false, $attemptobj->get_cm());
|
||||
// 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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user