From 49e1dfcca506e42b4da5a348ba8031ddc81bf16a Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 11 Jan 2022 23:39:02 -0500 Subject: [PATCH] Survey - Enable survey doodle page when time is over for tutor and admin - refs BT#19532 --- main/survey/meeting.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main/survey/meeting.php b/main/survey/meeting.php index d722fde3c6..2f3e6cee13 100644 --- a/main/survey/meeting.php +++ b/main/survey/meeting.php @@ -44,7 +44,9 @@ if (empty($surveyData)) { api_not_allowed(true); } -SurveyManager::checkTimeAvailability($surveyData); +if (!api_is_allowed_to_edit()) { + SurveyManager::checkTimeAvailability($surveyData); +} $invitations = SurveyUtil::get_invited_users($surveyData['code']); $students = isset($invitations['course_users']) ? $invitations['course_users'] : []; @@ -213,11 +215,11 @@ foreach ($students as $studentId) { } if ($action === 'edit') { - $html = '
'; } else { $html = $checked;