Skip to content

Commit

Permalink
Merge branch 'MDL-55744-35_atto_should_not_autosave_on_not_loggedin_u…
Browse files Browse the repository at this point in the history
…sers' of https://github.com/dravek/moodle into MOODLE_35_STABLE
  • Loading branch information
David Monllao committed Sep 3, 2018
2 parents 60357a5 + b3065a6 commit 304bd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/editor/atto/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ protected function get_init_params($elementid, array $options = null, array $fpo
}
$contentcss = $PAGE->theme->editor_css_url()->out(false);

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

0 comments on commit 304bd3b

Please sign in to comment.