diff --git a/main/gradebook/lib/fe/displaygradebook.php b/main/gradebook/lib/fe/displaygradebook.php
index cf2bd008ac..6f7732d1d0 100644
--- a/main/gradebook/lib/fe/displaygradebook.php
+++ b/main/gradebook/lib/fe/displaygradebook.php
@@ -323,7 +323,7 @@ class DisplayGradebook
$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()) {
+ 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') . '';
}
}
@@ -359,7 +359,7 @@ class DisplayGradebook
if ($is_course_admin) {
$header .= ''.Display::return_icon('stats_access.gif', get_lang('FlatView')).' '. get_lang('FlatView') . '';
- if ($is_platform_admin || $is_course_admin)
+ if ( api_is_platform_admin() /*$is_platform_admin || $is_course_admin*/)
$header .= ''.Display::return_icon('acces_tool.gif', get_lang('ScoreEdit')).' ' . get_lang('ScoreEdit') . '';
} elseif (!(isset ($_GET['studentoverview']))) {
$header .= ''.Display::return_icon('view_list.gif', get_lang('FlatView')).' ' . get_lang('FlatView') . '';
|