mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-15498: Completion fix: hide completion icons for guest/not logged in
This commit is contained in:
parent
49f6e5f476
commit
7edc92457c
@ -1460,7 +1460,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||
$completion=$hidecompletion
|
||||
? COMPLETION_TRACKING_NONE
|
||||
: $completioninfo->is_enabled($mod);
|
||||
if($completion!=COMPLETION_TRACKING_NONE) {
|
||||
if($completion!=COMPLETION_TRACKING_NONE && isloggedin() && !isguestuser()) {
|
||||
$completiondata=$completioninfo->get_data($mod,true);
|
||||
$completionicon='';
|
||||
if($isediting) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user