Commit 5cfbec3f authored by skodak's avatar skodak
Browse files

MDL-10635 using the same checks for visibility of edit button on the frontpage

parent b286b860
......@@ -254,10 +254,10 @@
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 '<td style="width: '.$preferred_width_right.'px;" id="right-column">';
if (!empty($THEME->customcorners)) print_custom_corners_start();
if (has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, SITEID))) {
if (editcourseallowed(SITEID)) {
echo '<div style="text-align:center">'.update_course_icon($SITE->id).'</div>';
echo '<br />';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment