diff options
author | Simon Rettberg | 2018-04-10 15:40:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-10 15:40:15 +0200 |
commit | 956eaf10e0d6ac36ac7a25340834346955b1122b (patch) | |
tree | afaa6bf6aa53d55a6aa1d343e69ef4f528a33313 | |
parent | Update translations (diff) | |
download | slx-admin-956eaf10e0d6ac36ac7a25340834346955b1122b.tar.gz slx-admin-956eaf10e0d6ac36ac7a25340834346955b1122b.tar.xz slx-admin-956eaf10e0d6ac36ac7a25340834346955b1122b.zip |
[exams] Fix always-disabled "add" button for existing lectures
-rw-r--r-- | modules-available/exams/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php index 15640a73..600089fc 100644 --- a/modules-available/exams/page.inc.php +++ b/modules-available/exams/page.inc.php @@ -457,7 +457,7 @@ class Page_Exams extends Page } else { Render::addTemplate('page-upcoming-lectures', [ 'pending_lectures' => $upcoming, - 'allowedToEdit' => $this->userCanEditExam(), + 'allowedToAdd' => $this->userCanEditExam(), 'decollapse' => array_key_exists('class', end($upcoming)) ]); } |