Revert "MDL-71915 mod_quiz: Render add question when user can edit the quiz"

This reverts commit 29ebc9f153.
This commit is contained in:
Sujith Haridasan
2022-02-15 15:54:00 +00:00
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;