mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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 87a31bb5d8
.
This commit is contained in:
parent
569747faec
commit
134e28b79c
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
||||||
$coursesections = $modinfo->get_section_info($section, MUST_EXIST);
|
$coursesections = $modinfo->get_section_info($section, MUST_EXIST);
|
||||||
|
|
||||||
// Check user is allowed to see it.
|
// 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
|
// Note: We actually already know they don't have this capability
|
||||||
// or uservisible would have been true; this is just to get the
|
// or uservisible would have been true; this is just to get the
|
||||||
// correct error message shown.
|
// correct error message shown.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue