File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3204,7 +3204,7 @@ public static function get_courses_list_by_user_id(
3204
3204
ON (scu.c_id = c.id)
3205
3205
INNER JOIN " .Database::get_main_table (TABLE_MAIN_SESSION )." s
3206
3206
ON (s.id = scu.session_id)
3207
- WHERE user_id = $ user_id " ;
3207
+ WHERE user_id = $ user_id OR id_coach = $ user_id " ;
3208
3208
$ r = Database::query ($ sql );
3209
3209
while ($ row = Database::fetch_array ($ r , 'ASSOC ' )) {
3210
3210
if (!empty ($ skipCourseList )) {
Original file line number Diff line number Diff line change @@ -2616,7 +2616,6 @@ public static function get_exam_results_data(
2616
2616
$ sessionCondition = '' ;
2617
2617
}
2618
2618
2619
- $ showAttemptsInSessions = api_get_configuration_value ('show_exercise_attempts_in_all_user_sessions ' );
2620
2619
if ($ showAttemptsInSessions ) {
2621
2620
$ sessions = SessionManager::get_sessions_by_general_coach (api_get_user_id ());
2622
2621
if (!empty ($ sessions )) {
You can’t perform that action at this time.
0 commit comments