diff --git a/index.php b/index.php index 161318bfd16..de0dad8da58 100644 --- a/index.php +++ b/index.php @@ -254,10 +254,10 @@ break; case 'right': // The right column - if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing || has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, SITEID))) { + if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing || editcourseallowed(SITEID)) { echo '