Revert "MDL-71915 mod_quiz: Render add question when user can edit the quiz"
This reverts commit 29ebc9f153.
This commit is contained in:
committed by
Tim Hunt
parent
d24a4ab56f
commit
ae377f6940
@@ -91,9 +91,7 @@ class previeweditaction implements templatable, renderable {
|
||||
(new moodle_url('/mod/quiz/startattempt.php', ['cmid' => $this->cmid, 'sesskey' => sesskey()]))->out(false);
|
||||
}
|
||||
} else {
|
||||
if ($this->canedit) {
|
||||
$data['addquestionlink'] = (new moodle_url('/mod/quiz/edit.php', ['cmid' => $this->cmid]))->out(false);
|
||||
}
|
||||
$data['addquestionlink'] = (new moodle_url('/mod/quiz/edit.php', ['cmid' => $this->cmid]))->out(false);
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user