File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 203
203
);
204
204
}
205
205
206
+ $ allowEditSessionCoaches = api_get_configuration_value ('disabled_edit_session_coaches_course_editing_course ' ) === false ;
206
207
$ coursesInSession = SessionManager::get_session_by_course ($ courseInfo ['real_id ' ]);
207
- if (!empty ($ coursesInSession )) {
208
+ if (!empty ($ coursesInSession ) && $ allowEditSessionCoaches ) {
208
209
foreach ($ coursesInSession as $ session ) {
209
210
$ sessionId = $ session ['id ' ];
210
211
$ coaches = SessionManager::getCoachesByCourseSession (
Original file line number Diff line number Diff line change 676
676
// Redirect to home tool after uploading a student publication or a adding a comment
677
677
//$_configuration['allow_redirect_to_main_page_after_work_upload'] = false;
678
678
// Empty the session student list when subscribing multiple users
679
- //$_configuration['not_empty_session_student_list_for_multiple_subscription'] = false;
679
+ //$_configuration['not_empty_session_student_list_for_multiple_subscription'] = false;
680
+ // Disable the option to set course coach in session when editing course
681
+ //$_configuration['disabled_edit_session_coaches_course_editing_course'] = false;
You can’t perform that action at this time.
0 commit comments