|
|
|
|
@ -880,11 +880,7 @@ $interbreadcrumb[] = [ |
|
|
|
|
$interbreadcrumb[] = ['url' => '#', 'name' => $objExercise->selectTitle(true)]; |
|
|
|
|
|
|
|
|
|
if (!in_array($origin, ['learnpath', 'embeddable', 'mobileapp'])) { //so we are not in learnpath tool |
|
|
|
|
if (!api_is_allowed_to_session_edit()) { |
|
|
|
|
Display::addFlash( |
|
|
|
|
Display::return_message(get_lang('SessionIsReadOnly'), 'warning') |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
SessionManager::addFlashSessionReadOnly(); |
|
|
|
|
|
|
|
|
|
Display::display_header(null, 'Exercises'); |
|
|
|
|
} else { |
|
|
|
|
@ -928,6 +924,13 @@ if ($is_visible_return['value'] == false) { |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!api_is_allowed_to_session_edit()) { |
|
|
|
|
if (!in_array($origin, ['learnpath', 'embeddable'])) { |
|
|
|
|
Display::display_footer(); |
|
|
|
|
} |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$exercise_timeover = false; |
|
|
|
|
$limit_time_exists = (!empty($objExercise->start_time) || !empty($objExercise->end_time)) ? true : false; |
|
|
|
|
|
|
|
|
|
|