Merge branch 'MDL-64394-accesslog' of https://github.com/brendanheywood/moodle
[moodle.git] / lib / moodlelib.php
index 67e3e72..820dc47 100644 (file)
@@ -2703,6 +2703,7 @@ function require_login($courseorid = null, $autologinguest = true, $cm = null, $
                         $modinfo = get_fast_modinfo($course);
                         $cm = $modinfo->get_cm($cm->id);
                     }
+                    set_access_log_user();
                     break;
                 }
             }