diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php index 33c637d265..11fb7ba258 100755 --- a/main/inc/introductionSection.inc.php +++ b/main/inc/introductionSection.inc.php @@ -345,13 +345,15 @@ $introduction_section .= '
'; if ($intro_dispDefault) { if (!empty($intro_content)) { - $introduction_section .='
'; - $introduction_section .= $intro_content; + $introduction_section .= '
'; + $introduction_section .= $intro_content; $introduction_section .= '
'; } else { - $introduction_section .= '
'; - $introduction_section .= get_lang('AddCustomCourseIntro').' ' . $textIntro; - $introduction_section .= '
'; + if (api_is_allowed_to_edit()) { + $introduction_section .= '
'; + $introduction_section .= get_lang('AddCustomCourseIntro') . ' ' . $textIntro; + $introduction_section .= '
'; + } } }