mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'wip-MDL-59412-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
29dcef0b65
@ -450,7 +450,7 @@ class core_course_renderer extends plugin_renderer_base {
|
||||
public function course_section_cm_completion($course, &$completioninfo, cm_info $mod, $displayoptions = array()) {
|
||||
global $CFG;
|
||||
$output = '';
|
||||
if (!$mod->is_visible_on_course_page()) {
|
||||
if (!empty($displayoptions['hidecompletion']) || !isloggedin() || isguestuser() || !$mod->uservisible) {
|
||||
return $output;
|
||||
}
|
||||
if ($completioninfo === null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user