Prevent course home icons customization in sessions - refs #7614

1.10.x
Yannick Warnier 10 years ago
parent 2539f3bf9e
commit 0153e50b3a
  1. 3
      main/course_home/course_home.php

@ -287,7 +287,8 @@ if (api_get_setting('homepage_view') == 'activity' ||
}
$editIconButton = '';
if (api_is_allowed_to_edit()) {
// The icons customization is only available in the base course at this time
if (api_is_allowed_to_edit() && empty($sessionId)) {
$editIconButton = '<div class="pull-right">'.Display::url(
get_lang('CustomizeIcons'),
api_get_path(WEB_CODE_PATH).'course_info/tools.php?'.api_get_cidreq(),

Loading…
Cancel
Save