diff --git a/main/mySpace/index.php b/main/mySpace/index.php index 5f782bb2f5..0659ffc2d0 100644 --- a/main/mySpace/index.php +++ b/main/mySpace/index.php @@ -151,6 +151,7 @@ if ($is_drh) { echo '
'; + echo ''; if ($display == 'useroverview' || $display == 'sessionoverview' || $display == 'courseoverview') { @@ -163,6 +164,18 @@ echo ''; if (!empty($session_id)) { echo ''.Display::return_icon('back.png', get_lang('Back'),'',ICON_SIZE_MEDIUM).''; + if (api_get_setting('add_users_by_coach') == 'true') { + if (!api_is_platform_admin()) { + if (!$is_coach) { + api_not_allowed(true); + } else { + echo "
"; + echo ''.Display::return_icon('excel.gif', get_lang('ImportUserList')).' '.get_lang('ImportUserList').''; + echo "

"; + } + } + } + } else { echo Display::url(Display::return_icon('stats.png', get_lang('MyStats'),'',ICON_SIZE_MEDIUM),api_get_path(WEB_CODE_PATH)."auth/my_progress.php" ); }