Skip to content

Commit c4aa41c

Browse files
author
David Monllao
committed
Merge branch 'MDL-55744-master_atto_should_not_autosave_on_not_loggedin_users' of https://github.com/dravek/moodle
2 parents f3b4a63 + 2ee47ae commit c4aa41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/editor/atto/lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ protected function get_init_params($elementid, array $options = null, array $fpo
180180
}
181181
$contentcss = $PAGE->theme->editor_css_url()->out(false);
182182

183-
// Autosave disabled for guests.
184-
if (isguestuser()) {
183+
// Autosave disabled for guests and not logged in users.
184+
if (isguestuser() OR !isloggedin()) {
185185
$autosave = false;
186186
}
187187
// Note <> is a safe separator, because it will not appear in the output of s().

0 commit comments

Comments
 (0)