Merge branch 'MDL-68983-recent-session-lock-ro' of https://github.com/brendanheywood/moodle

This commit is contained in:
Jake Dallimore
2020-10-21 12:45:36 +08:00
+4
View File
@@ -1274,6 +1274,10 @@ class manager {
return;
}
if (defined('READ_ONLY_SESSION') && READ_ONLY_SESSION && !empty($CFG->enable_read_only_sessions)) {
return;
}
$SESSION->recentsessionlocks = self::get_recent_session_locks();
array_push($SESSION->recentsessionlocks, $sessionlock);