Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-68983-recent-session-lock-ro-MOODLE_39_STABLE' of h…
  • Loading branch information
snake committed Oct 21, 2020
2 parents 806e6be + cedf141 commit 6e7c392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/classes/session/manager.php
Expand Up @@ -1274,6 +1274,10 @@ public static function update_recent_session_locks($sessionlock) {
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);

Expand Down

0 comments on commit 6e7c392

Please sign in to comment.