From: skodak Date: Sun, 26 Aug 2007 16:03:09 +0000 (+0000) Subject: MDL-10635 using the same checks for visibility of edit button on the frontpage X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5cfbec3f01bbb32bab613ce33797609abac29be9;p=moodle.git MDL-10635 using the same checks for visibility of edit button on the frontpage --- 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 '
'; }