Add conf setting disabled_edit_session_coaches_course_editing_course - refs BT#13607

pull/2487/head
Angel Fernando Quiroz Campos 7 years ago
parent 57e90405be
commit f172fe76a7
  1. 3
      main/admin/course_edit.php
  2. 4
      main/install/configuration.dist.php

@ -203,8 +203,9 @@ if (array_key_exists('add_teachers_to_sessions_courses', $courseInfo)) {
);
}
$allowEditSessionCoaches = api_get_configuration_value('disabled_edit_session_coaches_course_editing_course') === false;
$coursesInSession = SessionManager::get_session_by_course($courseInfo['real_id']);
if (!empty($coursesInSession)) {
if (!empty($coursesInSession) && $allowEditSessionCoaches) {
foreach ($coursesInSession as $session) {
$sessionId = $session['id'];
$coaches = SessionManager::getCoachesByCourseSession(

@ -676,4 +676,6 @@ $_configuration['gradebook_badge_sidebar'] = [
// Redirect to home tool after uploading a student publication or a adding a comment
//$_configuration['allow_redirect_to_main_page_after_work_upload'] = false;
// Empty the session student list when subscribing multiple users
//$_configuration['not_empty_session_student_list_for_multiple_subscription'] = false;
//$_configuration['not_empty_session_student_list_for_multiple_subscription'] = false;
// Disable the option to set course coach in session when editing course
//$_configuration['disabled_edit_session_coaches_course_editing_course'] = false;

Loading…
Cancel
Save