Skip to content

Commit

Permalink
Block survey start date and end date see BT#14957
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Nov 30, 2018
1 parent 5e02f2c commit 085fc17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main/survey/fillsurvey.php
Expand Up @@ -202,6 +202,10 @@
if (empty($survey_data)) {
api_not_allowed(true);
}

// Checking time availability
check_time_availability($survey_data);

$survey_data['survey_id'] = $survey_invitation['survey_id'];

if ($survey_data['survey_type'] == '3') {
Expand Down Expand Up @@ -524,9 +528,6 @@
$form->setDefaults($user_data);
}

// Checking time availability
check_time_availability($survey_data);

// Header
Display::display_header(get_lang('ToolSurvey'));

Expand Down
2 changes: 2 additions & 0 deletions main/survey/meeting.php
Expand Up @@ -64,6 +64,8 @@
api_not_allowed(true);
}

check_time_availability($surveyData);

$invitations = SurveyUtil::get_invited_users($surveyData['code']);
$students = isset($invitations['course_users']) ? $invitations['course_users'] : [];

Expand Down

0 comments on commit 085fc17

Please sign in to comment.