diff --git a/main/gradebook/lib/fe/displaygradebook.php b/main/gradebook/lib/fe/displaygradebook.php index 8cf141aaaf..297c2caccc 100755 --- a/main/gradebook/lib/fe/displaygradebook.php +++ b/main/gradebook/lib/fe/displaygradebook.php @@ -267,7 +267,7 @@ class DisplayGradebook $user_id=api_get_user_id(); $course_code=$my_category['course_code']; $status_user=api_get_status_of_user_in_course ($user_id,$course_code); - if (($status_user==1 && $is_course_admin && !isset ($_GET['search'])) || api_is_platform_admin()) { + if (($status_user==1 && $is_course_admin && !isset ($_GET['search'])) || api_is_platform_admin() || api_is_course_coach()) { if ($selectcat == '0') { if ($show_add_qualification === true) { // $header .= '' . get_lang('NewCategory') . ' ' . get_lang('NewCategory') . ''; @@ -302,13 +302,14 @@ class DisplayGradebook $my_course_id=api_get_course_id(); $my_file= substr($_SESSION['gradebook_dest'],0,5); if (($my_file!='index' || $status_user==1) || api_is_platform_admin()) { - $header .= ''.Display::return_icon('stats_access.gif', get_lang('FlatView')).' ' . get_lang('FlatView') . ''; - if (/*($is_course_admin && $message_resource===false && $status_user==1) ||*/ api_is_platform_admin()) { - $header .= ''.Display::return_icon('acces_tool.gif', get_lang('ScoreEdit')).' ' . get_lang('ScoreEdit') . ''; - $header .= ''.Display::return_icon('acces_tool.gif', get_lang('AttachCertificate')).' ' . get_lang('AttachCertificate') . ''; - $header .= ''.Display::return_icon('acces_tool.gif', get_lang('Certificate')).' ' . get_lang('GradebookSeeListOfStudentsCertificates') . ''; - - } + $header .= ''.Display::return_icon('acces_tool.gif', get_lang('ScoreEdit')).' ' . get_lang('ScoreEdit') . ''; + + } + if (/*($is_course_admin && $message_resource===false && $status_user==1) ||*/ api_is_platform_admin() || api_is_course_coach()) { + $header .= ''.Display::return_icon('stats_access.gif', get_lang('FlatView')).' ' . get_lang('FlatView') . ''; + $header .= ''.Display::return_icon('acces_tool.gif', get_lang('AttachCertificate')).' ' . get_lang('AttachCertificate') . ''; + $header .= ''.Display::return_icon('acces_tool.gif', get_lang('Certificate')).' ' . get_lang('GradebookSeeListOfStudentsCertificates') . ''; + } } }