From 134e28b79cab0ca399d2e819eff242c5ed8fd991 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 22 Aug 2012 16:37:36 +0800 Subject: [PATCH] Revert "MDL-34444 course: show section availability info" Turns out this change was just wrong, we shouldn't be allowing linking to unaavilable sections. Just show the availability information on the 'index page' This reverts commit 87a31bb5d8fedd4447cf99cef13c5dd367c3ea3e. --- course/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/view.php b/course/view.php index 86b6186ab91..f0c307983ed 100644 --- a/course/view.php +++ b/course/view.php @@ -105,7 +105,7 @@ $coursesections = $modinfo->get_section_info($section, MUST_EXIST); // Check user is allowed to see it. - if (!$coursesections->uservisible && !empty($section->availableinfo)) { + if (!$coursesections->uservisible) { // Note: We actually already know they don't have this capability // or uservisible would have been true; this is just to get the // correct error message shown.