From 5cfbec3f01bbb32bab613ce33797609abac29be9 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 26 Aug 2007 16:03:09 +0000 Subject: [PATCH] MDL-10635 using the same checks for visibility of edit button on the frontpage --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 161318bfd1..de0dad8da5 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 ''; if (!empty($THEME->customcorners)) print_custom_corners_start(); - if (has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, SITEID))) { + if (editcourseallowed(SITEID)) { echo '
'.update_course_icon($SITE->id).'
'; echo '
'; } -- 2.39.5